Skip to content

Instantly share code, notes, and snippets.

@AdamSaleh
Created May 21, 2018 12:51
Show Gist options
  • Select an option

  • Save AdamSaleh/58dbef16d925ee86ee8e3c0c43e884e5 to your computer and use it in GitHub Desktop.

Select an option

Save AdamSaleh/58dbef16d925ee86ee8e3c0c43e884e5 to your computer and use it in GitHub Desktop.
Dockerized Jenkins Job Builder
FROM python:2
ENV BRANCH master
WORKDIR /
RUN git clone -b allow_self_signed_certs https://github.com/mikenairn/python-jenkins.git
WORKDIR python-jenkins
RUN pip install -U -r requirements.txt && python setup.py install
WORKDIR /
RUN git clone -b ${BRANCH} https://git.openstack.org/openstack-infra/jenkins-job-builder
WORKDIR jenkins-job-builder
RUN git checkout baca7d15504a93c9d92f15e034470cbdc86f2615
RUN pip install -U -r requirements.txt && python setup.py install
## Install plugins
WORKDIR /
RUN git clone https://github.com/rusty-dev/jenkins-job-builder-pipeline.git
WORKDIR jenkins-job-builder-pipeline
RUN python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment