Jenkinsfile changed, Dockerfile removed
diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index d62060a..0000000 --- a/Dockerfile +++ /dev/null
@@ -1,21 +0,0 @@ -FROM myserver:withproxy -#linux 16.04 -MAINTAINER Dimitris - -WORKDIR microservices - -RUN git clone http://172.18.22.160:8880/gitblit-1.8.0/r/Dropwizard/Microservices/mics-central-service.git && cd mics-central-service && git checkout DEVELOP_BE - -WORKDIR mics-central-service - -RUN mvn install -DskipTests - -WORKDIR / - -COPY C:\\Projekte\\Jenkins_Dockerfiles\\central\\my_wrapper_script.sh my_wrapper_script.sh -RUN sed -i -e 's/\r$//' my_wrapper_script.sh -CMD ./my_wrapper_script.sh - -EXPOSE 9010 9011 - -
diff --git a/Jenkinsfile b/Jenkinsfile index 44810f7..e51b6af 100644 --- a/Jenkinsfile +++ b/Jenkinsfile
@@ -5,15 +5,18 @@ checkout scm } + + stage('Change directory') { + sh 'cd C:/\Users/\Administrator/\Projekt/\Microservices/\UbuntuServer/\central' + } stage('Build image') { /* This builds the actual image; synonymous to * docker build on the command line */ - sh 'docker build --no-cache -t myserver_central:jenkinsversion .' } stage('Refresh containers') { - sh 'C:\\Jenkinshelper\\refresh_docker.bat' + sh './C:/\Jenkinshelper/\refresh_docker.bat' } } \ No newline at end of file