The repository contains job definitions using Jenkins Job Dsl plugin.
Check out the tutorial. Provide the link to this repository in your Jenkins installation.
The seed job for Spring Cloud should scan the jobs/springcloud/*.groovy files.
Remember to add src/main/groovy and src/main/resources for processing
The Gradle build comes with some useful tasks (run ./gradlew tasks to see the whole list). Let’s focus on
the following ones
Jenkins tasks
-------------
startJenkins - Starts Jenkins via Docker Compose
stopJenkins - Stops Jenkins via Docker ComposeJust run
docker-compose up -dor
./gradlew startJenkinsand your jenkins with plugins present in plugins.txt will be ready at port 8080.
In order to download the latest plugins:
1) Open in your browser
http://$JENKINS_HOST/pluginManager/api/xml?depth=1&xpath=/*/*/shortName|/*/*/version&wrapper=plugins"
2) Store the XML to a file
3) Pipe the contents of the file to this command:
perl -pe 's/.*?<shortName>([\w-]+).*?<version>([^<]+)()(<\/\w+>)+/\1 \2\n/g'|sed 's/ /:/'
4) Store it as plugins.txtWait patiently for Jenkins to start - the job will be added automatically for you.