Date
Attendees
- Tyler Putnam
- Jessica Martz
- Thomas O'Dea
- Jim Turner
Goals
- Complete the setup to get:
- git-server hook to trigger a Jenkins deploy and test multipage code changes
- Jenkins project deploys the multipage branch to the tssgTechMultipage endpoint
- Jenkins dev chromeTest project to run automatically after a successful run of the project tssgTech Deploy multipage to nc-nginx tssgTechMultipage
Discussion items
Component | Item | Who | Notes |
---|---|---|---|
Joel | Joel got a job! | Congratulations! | |
Meetings | Next Meeting | All | Next meeting of Geb and Spock Workshop 18 will be on at 10:00 AM |
Jenkins | Create project to deploy multipage branch | Create project to deploy multipage branch Copy project from tssgTech Deploy master to nc-nginx:
| |
s14 | Disable publishing the multipage branch within cron job script tssgTech.deploy | tssgTech.deploy
| |
git-server | Trigger Jenkins deploy project in git hook repos/tssgTech.git/hooks/post-receive |
| |
Jenkins | Modify Geb and Spock project to trigger after upstream deploy project completes successfully | dev chromeTest |
References
- git-server container Timezone change
- How to get the API Token for Jenkins
- Export/import jobs in Jenkins
- one liner
curl -s http://OLD_JENKINS/job/JOBNAME/config.xml | curl -X POST 'http://NEW_JENKINS/createItem?name=JOBNAME' --header "Content-Type: application/xml" -d @-
- Authentication
curl -s http:///<USER>:<API_TOKEN>@OLD_JENKINS/job/JOBNAME/config.xml | curl -X POST 'http:///<USER>:<API_TOKEN>@NEW_JENKINS/createItem?name=JOBNAME' --header "Content-Type: application/xml" -d @-
- With Crumb, if CSRF is active (see details here)�
- get Crumb
$ CRUMB_OLD=$(curl -s 'http://<USER>:<API_TOKEN>@OLD_JENKINS/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')
$ CRUMB_NEW=$(curl -s 'http://<USER>:<API_TOKEN>@NEW_JENKINS/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')
- apply crumb with -H CRUMB
curl -s -H $CRUMB_OLD http:///<USER>:<API_TOKEN>@OLD_JENKINS/job/JOBNAME/config.xml | curl -X POST -H $CRUMB_NEW 'http:///<USER>:<API_TOKEN>@NEW_JENKINS/createItem?name=JOBNAME' --header "Content-Type: application/xml" -d @-
- get Crumb
- Jenkins REST API Create Job
- one liner
Action items
- Create project to deploy multipage branch
- Disable publishing the multipage branch within cron job script tssgTech.deploy
- Trigger Jenkins deploy project in git hook repos/tssgTech.git/hooks/post-receive
- Modify Geb and Spock project to trigger after upstream deploy project completes successfully