Commit 8c28790e authored by bill lin's avatar bill lin

sdfsdfdsf

parent bb4089d3
FROM nginx:latest FROM tomcat:7.0.96
## Remove default nginx website ## Remove default nginx website
RUN rm -rf /usr/share/nginx/html/* #RUN rm -rf /usr/share/nginx/html/*
## From 'builder' stage copy over the artifacts in dist folder to default nginx public folder ## From 'builder' stage copy over the artifacts in dist folder to default nginx public folder
COPY new/ /usr/share/nginx/html COPY target/CargoTrans_BPA.war /usr/local/tomcat/webapps/
CMD ["nginx", "-g", "daemon off;"] #EXPOSE 8080
#CMD ["catalina.sh", "run"]
...@@ -14,5 +14,25 @@ pipeline { ...@@ -14,5 +14,25 @@ pipeline {
''' '''
} }
} }
stage('BUILD IMAGE') {
steps {
sh '''docker build -t $registry_address/$image_name:latest .'''
}
} }
stage('PUSH IMAGE') {
steps {
sh '''docker login -u deployment -p deployment123 nexus.gsstcloud.com:8093
docker push $registry_address/$image_name:latest'''
}
}
}
environment {
registry_address = 'nexus.gsstcloud.com:8093/bws'
image_name = 'bws'
app_server_sit = '192.168.12.162:5000'
app_project_name = 'default-fe'
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment