You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
889 B
33 lines
889 B
6 years ago
|
pipeline {
|
||
|
agent any
|
||
|
|
||
|
stages {
|
||
|
stage('Generate CMake files') {
|
||
|
steps {
|
||
|
sh "rm -rf /var/jenkins_work/movesense-device-lib/myBuild"
|
||
|
sh "mkdir /var/jenkins_work/movesense-device-lib/myBuild"
|
||
|
sh "alias python=/usr/bin/python2.7; cd /var/jenkins_work/movesense-device-lib/myBuild; cmake -G Ninja -DMOVESENSE_CORE_LIBRARY=../MovesenseCoreLib/ -DCMAKE_TOOLCHAIN_FILE=../MovesenseCoreLib/toolchain/gcc-nrf52_gentoo.cmake -DCMAKE_BUILD_TYPE=Release ${WORKSPACE}"
|
||
|
|
||
|
sh "cd /var/jenkins_work/movesense-device-lib/myBuild; ninja"
|
||
|
}
|
||
|
}
|
||
|
stage('Compile') {
|
||
|
steps {
|
||
|
sh "cd /var/jenkins_work/movesense-device-lib/myBuild; ninja"
|
||
|
}
|
||
|
}
|
||
|
stage('Build packages') {
|
||
|
steps {
|
||
|
sh "cd /var/jenkins_work/movesense-device-lib/myBuild; ninja dfupkg"
|
||
|
}
|
||
|
}
|
||
|
stage('Archive artifacts') {
|
||
|
steps {
|
||
|
archiveArtifacts artifacts: 'Movesense_dfu*.zip'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|