Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
0746b628
Commit
0746b628
authored
May 30, 2018
by
Anthony Lamping
Committed by
Daniel Agar
May 30, 2018
Browse files
jenkins: use post for after build actions
parent
db03341e
Changes
1
Show whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
0746b628
...
...
@@ -26,9 +26,13 @@ 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'
}
post
{
cleanup
{
sh
'git clean -ff -x -d .'
}
}
}
stage
(
'Linux Debug'
)
{
environment
{
...
...
@@ -51,9 +55,13 @@ 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'
}
post
{
cleanup
{
sh
'git clean -ff -x -d .'
}
}
}
stage
(
'Linux Release'
)
{
environment
{
...
...
@@ -76,9 +84,13 @@ 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'
}
post
{
cleanup
{
sh
'git clean -ff -x -d .'
}
}
}
stage
(
'OSX Debug'
)
{
agent
{
...
...
@@ -100,9 +112,13 @@ 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'
}
post
{
cleanup
{
sh
'git clean -ff -x -d .'
}
}
}
stage
(
'OSX Release'
)
{
agent
{
...
...
@@ -124,10 +140,16 @@ 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
)
}
post
{
success
{
archiveArtifacts
(
artifacts:
'build/**/*.dmg'
,
fingerprint:
true
)
}
cleanup
{
sh
'git clean -ff -x -d .'
}
}
}
}
// parallel
}
// stage('build')
}
// stages
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment