add Jenkinsfile
This commit is contained in:
20
Jenkinsfile
vendored
Normal file
20
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
pipeline {
|
||||||
|
agent none
|
||||||
|
options {
|
||||||
|
copyArtifactPermission('*');
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('build') {
|
||||||
|
agent {
|
||||||
|
docker { image '${env.DOCKER_PREFIX}/picosdk' }
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'mkdir -p build'
|
||||||
|
sh "cd build && rm -rf ./* && cmake .."
|
||||||
|
sh "cd build && make -j${env.JOBS_COUNT}"
|
||||||
|
archiveArtifacts './build/*.uf2'
|
||||||
|
sh 'rm -rf ./build'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user