Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.1 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.1 KB

Jenkins Job DSL scripts for the t3rookies project

Description

This repository contains the Jenkins Job DSL scripts for the T3Rookies project.

For easier maintenance, every DSL file should only contain one Jenkins Job/View Group. Jobs that loops over arrays like ci_install.groovy containing jobs for install on {latest,deploy,sandbox,preproduction} should of course be in one file, as it would make the maintenance to difficult.

Usage

The seed job required to process the DSLs can be created automatically using the t3rookies_tools_job-dsl_seed.groovy script.

Testing Jobs Locally

Test the job scripts:

Use the JobScriptsSpec to test your job scripts. Simply call: ./gradlew test. This will find syntactic errors in your DSL script.

Test a specific job:

Call ./gradlew run -PjobFile=Jobs/<MY_JOB_DSL_FILE>.groovy. This will generate Jenkins configuration *.xml files like if directly run in Jenkins.