Skip to content

Commit 8df4445

Browse files
committed
Install Jenkins 2.50
1 parent ac25676 commit 8df4445

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

jenkins/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ENV HOME /jenkins
66
ENV JENKINS_VERSION 2.50
77
ENV JENKINS_HOME /jenkins
88
RUN mkdir \jenkins
9-
RUN Invoke-WebRequest -Uri https://updates.jenkins-ci.org/download/war/2.0/jenkins.war -UseBasicParsing -OutFile /jenkins.war
9+
RUN Invoke-WebRequest -Uri $('https://updates.jenkins-ci.org/download/war/{0}/jenkins.war' -f $env:JENKINS_VERSION) -UseBasicParsing -OutFile /jenkins.war
1010

1111
VOLUME C:\\jenkins
1212

jenkins/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Jenkins
2+
3+
```bash
4+
$ docker build -t jenkins .
5+
$ mkdir jenkinsdata
6+
$ docker run -it -p 8080:8080 -v C:$(pwd)/jenkinsdata:C:/jenkins jenkins
7+
$ open http://$(docker-machine ip windows):8080
8+
```

0 commit comments

Comments
 (0)