Skip to content

Instantly share code, notes, and snippets.

@ericbmerritt
Created January 31, 2013 22:42
Show Gist options
  • Save ericbmerritt/4687358 to your computer and use it in GitHub Desktop.
Save ericbmerritt/4687358 to your computer and use it in GitHub Desktop.
ansible tasks
- include: ci-github.yml github_repo=${github_repo} post_build_mail="<hidden>" post_build_trigger=<hidden>
- name: make directory for ${github_repo}
action: file dest=/var/lib/jenkins/jobs/${github_repo} state=directory
mode=0755 owner=jenkins group=jenkins
- name: configure the job for ${github_repo}
action: template src=../templates/ci/jobs/main_build_job.xml
dest=/var/lib/jenkins/jobs/${github_repo}/config.xml
owner=jenkins group=jenkins
- name: make directory for ${github_repo}
action: file dest=/var/lib/jenkins/jobs/${github_repo}_prb state=directory
mode=0755 owner=jenkins group=jenkins
- name: configure the job for ${github_repo}
action: template src=../templates/ci/jobs/pull_request_build_job.xml
dest=/var/lib/jenkins/jobs/${github_repo}_prb/config.xml
owner=jenkins group=jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment