Skip to content

Instantly share code, notes, and snippets.

@mlafeldt
Created February 15, 2016 15:29
Show Gist options
  • Save mlafeldt/54b26ea0e7744f9431ac to your computer and use it in GitHub Desktop.
Save mlafeldt/54b26ea0e7744f9431ac to your computer and use it in GitHub Desktop.
- name: "Build and push Docker images"
sudo: yes
command: "java -jar /opt/jenkins/jenkins-cli.jar -s http://127.0.0.1:8080 build {{ item }} -f"
args:
creates: "/var/lib/jenkins/jobs/{{ item }}/workspace"
with_items:
- CLI
- Deployer
- Foo
- Bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment