-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from purduesigbots/evn-jenkins-update for rele…
…ase 2.12.1
- Loading branch information
Showing
3 changed files
with
16 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,10 @@ | ||
stage('Build') { | ||
def build_ver = '2.11.0' | ||
node('win') { | ||
def venv = new edu.purdue.pros.venv() | ||
stage('Clean') { | ||
if(isUnix()) { | ||
sh 'git init' | ||
sh 'git clean -x -d -f' | ||
} else { | ||
bat 'git init' | ||
bat 'git clean -x -d -f' | ||
} | ||
} | ||
stage('PROS CLI') { | ||
tool 'python3' | ||
if(isUnix()) { | ||
sh 'sudo apt-get install -y python3-pip' | ||
} | ||
venv.create_virtualenv() | ||
venv.run 'pip3 install --no-cache-dir git+git://github.com/purduesigbots/pros-cli.git@master', sudo = true | ||
} | ||
stage('Clone') { | ||
checkout scm | ||
if(isUnix()) { | ||
sh 'git describe --tags > version' | ||
} else { | ||
bat 'git describe --tags > version' | ||
} | ||
build_ver = readFile 'version' | ||
echo "Build PROS at version ${build_ver}" | ||
} | ||
toolchain_dir = tool 'arm-gcc' | ||
withEnv(["PROS_TOOLCHAIN=${toolchain_dir}"]) { | ||
venv.run 'pros conduct first-run --use-defaults --no-download --no-force' | ||
venv.run 'pros make template' | ||
} | ||
zip archive: true, dir: 'template', glob: '', zipFile: "kernel-template.zip" | ||
node('linux&&prostools') { | ||
checkout scm | ||
sh ''' | ||
sudo pip3 install vex | ||
vex -mr kernel ./build.sh | ||
''' | ||
archiveArtifacts artifacts: 'kernel-template.zip', onlyIfSuccessful: true | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
pip3 install --no-cache-dir git+git://github.com/purduesigbots/pros-cli.git@master | ||
pros conduct first-run --no-force --use-defaults --no-download --apply-providers | ||
pros make template |