jenkins/jenkins-create-job

Create New Job

Create a new Jenkins job from an XML config

jenkins
job
create

Command

java -jar jenkins-cli.jar -s http://localhost:8080/ create-job new-job < config.xml

Explanation

Creates a new Jenkins job using an XML configuration file. Useful for automated job creation or cloning existing jobs.

Examples

Create a job from template

java -jar jenkins-cli.jar -s http://localhost:8080/ create-job new-job < template-job.xml