Questions tagged [jenkins-job-dsl]

Jenkins Job-DSL is a Jenkins plugin which enables the creation of Jenkins Jobs using Groovy scripts. It's available in the standard Jenkins plugin list.

For command reference see the Job DSL API Viewer.

Example of DSL script:

job('Hello World') {
  description 'A Simple Job'
  scm {
    github 'pdurbin/maven-hello-world'
  }
  steps {
    maven 'package', 'my-app/pom.xml'
  }
  publishers {
    archiveArtifacts 'build/**/jar'
  }
}

Links

844 questions
-1
votes
4 answers

Continuous Execution in Jenkins

How to execute the same build again and again in Jenkins(Say I want to execute the build for 10 times continuously). After each execution the reports have to copied. Don't say create 10 jobs and make use of Downstream/Upstream.
louis
  • 595
  • 3
  • 9
  • 24
-2
votes
1 answer

How to integrate JobDSL with "Jenkinsfile"?

I have genrated jenkinsfile through python script. I want to integrate that jenkinsfile with JobDSL through code. I want to integrate genrated jenkinsfile with JobDSL through code. how to do this?
-2
votes
1 answer

How to configure jenkins to give password while executing shell script in remote server

I have a shell script to do deployment on a remote server. But I didn't have full root privileges for that server and it asks password for every steps (4-5 times while executing the script). Now, I want to run the shell script using Jenkins. How to…
-3
votes
1 answer

Job DSL Plugin - Invoke Sonarqube Scanner for MSBuild

I want to invoke Sonarqube Scanner for MSBuild Begin Analysis and Sonarqube Scanner for MSBuild End Analysis in Jenkins job using Job DSL Plugin Script. I want to produce a config.xml like below :
1 2 3
56
57