Re:Jenkins pipelines as YAML
by mart187 on Wednesday July 18, 2018 @02:27PM
(#17560872)
We have Jenkins connected to ECS as build agent pool. Every team has it's own Jenkins instance running, secured with AD login.
Pipelines are using Jenkinsfiles.
My only critique is that it's not fully ci as code because you need to manually create the pipeline, connect it to fit repo, etc.
[ Parent
| on HN ]
Re:Jenkins pipelines as YAML
by michaelneale on Wednesday July 18, 2018 @06:38PM
(#17562605)
It may not work for you but "organization folders" (a feature of multi branch) were designed to discover projects from bitbucket, github etc (ie a new repo appears, with a Jenkinsfile, a new project will automatically configured). Some people have had luck with them (they don't always work how you want though, but when they do, don't need to manually create the pipeline other than dropping in a Jenkinsfile in a new repo).
Have you looked into https://wiki.jenkins.io/display/JENKINS/Groovy+Hook+Script ?
There's a handful of cool scripts that other folks have written :)
Check out this repo for an example: https://github.com/hayderimran7/useful-jenkins-groovy-init-s...