https://github.com/unguiculus/job-dsl-sample
Jenkins Job DSL Sample Project
https://github.com/unguiculus/job-dsl-sample
gradle jenkins job-dsl spock
Last synced: 2 months ago
JSON representation
Jenkins Job DSL Sample Project
- Host: GitHub
- URL: https://github.com/unguiculus/job-dsl-sample
- Owner: unguiculus
- License: apache-2.0
- Created: 2017-05-05T14:39:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-14T14:37:20.000Z (about 3 years ago)
- Last Synced: 2025-03-18T05:43:53.564Z (2 months ago)
- Topics: gradle, jenkins, job-dsl, spock
- Language: Groovy
- Homepage:
- Size: 65.4 KB
- Stars: 33
- Watchers: 4
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.adoc
Awesome Lists containing this project
README
= job-dsl-sample
Sample project for a Jenkins Job DSL setup with Gradle.
* Uses Jenkins Test Harness to test the DSL on a real Jenkins
* Includes a Jenkinsfile for use in a multi-branch pipeline job== Testing Job DSL
----
$ ./gradlew test
----This starts up Jenkins using Jenkins Test Harness and runs the Job DSL scripts in the `jobs` directory. A very simple
Spock test checks that no exception is thrown. Real world setup might want to use some more advanced tests, but this
gives you a starting point for an initial setup. Additionally, the generated job config files are saved to the directory
`build/xml`.Used by https://github.com/unguiculus/docker-jenkins-bootstrap[docker-jenkins-bootstrap].
'''
[link=http://www.apache.org/licenses/LICENSE-2.0.html]
image::http://img.shields.io/:license-apache--2.0-blue.svg?style=flat[]