Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM <my-repo>/build/openjdk:latest
- ARG master
- ENV JENKINS_MASTER_URL=$master
- ENV HOME /home/jenkins
- RUN mkdir -p /usr/share/jenkins && chmod 755 /usr/share/jenkins
- COPY slave.jar /usr/share/jenkins/slave.jar
- USER jenkins
- RUN mkdir $HOME/.jenkins
- VOLUME $HOME/.jenkins
- WORKDIR $HOME
- CMD ["sh", "-c", "java -jar /usr/share/jenkins/slave.jar -jnlpUrl $JENKINS_MASTER_URL"]
- docker build -t slave:0.4 . --build-arg masterurl='http://<URL-OF_JK-MASTER>'
- [Fatal Error] test.com:6:3: The element type "hr" must be terminated by the matching end-tag "</hr>".
- Failing to obtain http://<URL-OF_JK-MASTER>
- java.io.IOException: http://<URL-OF_JK-MASTER> doesn't look like a JNLP file; content type was text/html
- at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:525)
- at hudson.remoting.Launcher.run(Launcher.java:322)
- at hudson.remoting.Launcher.main(Launcher.java:283)
- Waiting 10 seconds before retry
- [Fatal Error] test.com:6:3: The element type "hr" must be terminated by the matching end-tag "</hr>".
- Failing to obtain http://<URL-OF_JK-MASTER>
- java.io.IOException: http://<URL-OF_JK-MASTER> doesn't look like a JNLP file; content type was text/html
- at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:525)
- at hudson.remoting.Launcher.run(Launcher.java:322)
- at hudson.remoting.Launcher.main(Launcher.java:283)
Add Comment
Please, Sign In to add comment