add Jenkinsfile

This commit is contained in:
2024-02-04 21:50:38 +03:00
parent f4048936da
commit 7860228e84

20
Jenkinsfile vendored Normal file
View 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'
}
}
}
}