Jenkinsfile deploy cleanup checkouts when done

This commit is contained in:
Daniel Agar 2018-12-02 11:11:00 -05:00
parent c25d122f12
commit 99c225dda2
1 changed files with 3 additions and 0 deletions

3
Jenkinsfile vendored
View File

@ -395,6 +395,7 @@ pipeline {
sh('cp -R modules/*.md Devguide/en/middleware/')
sh('cd Devguide; git status; git add .; git commit -a -m "Update PX4 Firmware metadata `date`" || true')
sh('cd Devguide; git push origin master || true')
sh('rm -rf Devguide')
}
}
when {
@ -422,6 +423,7 @@ pipeline {
sh('cp parameters.md px4_user_guide/en/advanced_config/parameter_reference.md')
sh('cd px4_user_guide; git status; git add .; git commit -a -m "Update PX4 Firmware metadata `date`" || true')
sh('cd px4_user_guide; git push origin master || true')
sh('rm -rf px4_user_guide')
}
}
when {
@ -449,6 +451,7 @@ pipeline {
sh('cp parameters.xml qgroundcontrol/src/FirmwarePlugin/PX4/PX4ParameterFactMetaData.xml')
sh('cd qgroundcontrol; git status; git add .; git commit -a -m "Update PX4 Firmware metadata `date`" || true')
sh('cd qgroundcontrol; git push origin master || true')
sh('rm -rf qgroundcontrol')
}
}
when {