Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- whoami
- rm -rf Jenkins
- cd ${WORKSPACE}
- git clone <repo.git>
- cd ${WORKSPACE}/Jenkins
- ls /var/lib/jenkins/.jenkins/plugins/ > PLUGIN_INVENTORY
- git config user.email <your@email.com>
- git config user.name <you>
- cd /var/lib/jenkins/.jenkins/jobs
- cp --parents $(ls */config.xml) ${WORKSPACE}/Jenkins/
- cd /var/lib/jenkins/.jenkins
- cp config.xml ${WORKSPACE}/Jenkins/
- cd ${WORKSPACE}/Jenkins
- git add *
- git commit -a -m "${BUILD_ID}" || true
- git push origin master || true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement