Commit 0746b628 authored by Anthony Lamping's avatar Anthony Lamping Committed by Daniel Agar

jenkins: use post for after build actions

parent db03341e
......@@ -26,7 +26,11 @@ pipeline {
sh 'mkdir build; cd build; ${QT_PATH}/${QMAKE_VER} -r ${WORKSPACE}/qgroundcontrol.pro CONFIG+=${QGC_CONFIG} CONFIG+=WarningsAsErrorsOn'
sh 'cd build; make -j`nproc --all`'
sh 'ccache -s'
sh 'git clean -ff -x -d .'
}
post {
cleanup {
sh 'git clean -ff -x -d .'
}
}
}
......@@ -51,7 +55,11 @@ pipeline {
sh 'mkdir build; cd build; ${QT_PATH}/${QMAKE_VER} -r ${WORKSPACE}/qgroundcontrol.pro CONFIG+=${QGC_CONFIG} CONFIG+=WarningsAsErrorsOn'
sh 'cd build; make -j`nproc --all`'
sh 'ccache -s'
sh 'git clean -ff -x -d .'
}
post {
cleanup {
sh 'git clean -ff -x -d .'
}
}
}
......@@ -76,7 +84,11 @@ pipeline {
sh 'mkdir build; cd build; ${QT_PATH}/${QMAKE_VER} -r ${WORKSPACE}/qgroundcontrol.pro CONFIG+=${QGC_CONFIG} CONFIG+=WarningsAsErrorsOn'
sh 'cd build; make -j`nproc --all`'
sh 'ccache -s'
sh 'git clean -ff -x -d .'
}
post {
cleanup {
sh 'git clean -ff -x -d .'
}
}
}
......@@ -100,7 +112,11 @@ pipeline {
sh 'mkdir build; cd build; ${QT_PATH}/${QMAKE_VER} -r ${WORKSPACE}/qgroundcontrol.pro CONFIG+=${QGC_CONFIG} CONFIG+=WarningsAsErrorsOn'
sh 'cd build; make -j`sysctl -n hw.ncpu`'
sh 'ccache -s'
sh 'git clean -ff -x -d .'
}
post {
cleanup {
sh 'git clean -ff -x -d .'
}
}
}
......@@ -124,8 +140,14 @@ pipeline {
sh 'mkdir build; cd build; ${QT_PATH}/${QMAKE_VER} -r ${WORKSPACE}/qgroundcontrol.pro CONFIG+=${QGC_CONFIG} CONFIG+=WarningsAsErrorsOn'
sh 'cd build; make -j`sysctl -n hw.ncpu`'
sh 'ccache -s'
archiveArtifacts(artifacts: 'build/**/*.dmg', fingerprint: true, onlyIfSuccessful: true)
sh 'git clean -ff -x -d .'
}
post {
success {
archiveArtifacts(artifacts: 'build/**/*.dmg', fingerprint: true)
}
cleanup {
sh 'git clean -ff -x -d .'
}
}
}
} // parallel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment