This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- job: | |
name: job-generator | |
builders: | |
- dsl: | |
script-text: | |
!include-raw hello-world.dsl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//IMPORTANT NOTE!!!: Name this file "job-generation.dsl". Github's gist tool uses the file extension to establish syntax highlighting rules | |
@GrabResolver(name="repo.jenkins-ci.org",root='http://repo.jenkins-ci.org/public/') | |
@Grapes([ | |
@Grab(group='org.kohsuke', module='github-api', version='1.59') | |
]) | |
import static hudson.security.ACL.SYSTEM | |
import com.cloudbees.plugins.credentials.CredentialsProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job { | |
name 'hello-world' | |
steps { | |
shell('echo "Hello World!"') | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo jenkins-jobs update hello_world.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- job: | |
name: my_hello_world_job | |
parameters: | |
- string: | |
name: Message | |
default: Hello World | |
description: A message to echo | |
builders: | |
- shell: "echo $Message" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[job_builder] | |
ignore_cache=True | |
keep_descriptions=False | |
include_path=. | |
recursive=False | |
allow_duplicates=False | |
[jenkins] | |
user=YOUR_USER_NAME | |
password=YOUR_PASSWORD_OR_API_KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
git clone [email protected]:openstack-infra/jenkins-job-builder.git | |
cd jenkins-job-builder | |
python setup.py install | |
pip install pbr |