Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. whoami
  2. rm -rf Jenkins
  3. cd ${WORKSPACE}
  4. git clone <repo.git>
  5. cd ${WORKSPACE}/Jenkins
  6. ls /var/lib/jenkins/.jenkins/plugins/ > PLUGIN_INVENTORY
  7. git config user.email <your@email.com>
  8. git config user.name <you>
  9. cd /var/lib/jenkins/.jenkins/jobs
  10. cp --parents $(ls */config.xml) ${WORKSPACE}/Jenkins/
  11. cd /var/lib/jenkins/.jenkins
  12. cp config.xml ${WORKSPACE}/Jenkins/
  13. cd ${WORKSPACE}/Jenkins
  14. git add *
  15. git commit -a -m "${BUILD_ID}" || true
  16. git push origin master || true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement