Skip to content

Commit

Permalink
improve the jenkins setup
Browse files Browse the repository at this point in the history
  • Loading branch information
deepu105 committed Feb 1, 2019
1 parent c84c346 commit 86169d5
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 6 deletions.
Binary file modified app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docker-compose/xebialabs/jenkins/jenkins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
branch("master")
remote {
credentials('github-credentials')
url('https://github.com/<your-github-username>/e-commerce-microservice.git')
url('https://github.com/${GITHUB_USER}/e-commerce-microservice.git')
}
}
}
Expand All @@ -29,7 +29,7 @@ jobs:
branch("master")
remote {
credentials('github-credentials')
url('https://github.com/<your-github-username>/e-commerce-microservice.git')
url('https://github.com/${GITHUB_USER}/e-commerce-microservice.git')
}
}
}
Expand All @@ -46,7 +46,7 @@ jobs:
branch("master")
remote {
credentials('github-credentials')
url('https://github.com/<your-github-username>/e-commerce-microservice.git')
url('https://github.com/${GITHUB_USER}/e-commerce-microservice.git')
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions docker-compose/xebialabs/xl-deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@ FROM xebialabsunsupported/xl-deploy:8.5.0

COPY default-conf/* /opt/xebialabs/xl-deploy-server/default-conf/

# workarounds for latest fixes

RUN rm -f /opt/xebialabs/xl-deploy-server/lib/provision-8.5.0.jar
COPY lib/provision-8.6.0-SNAPSHOT.jar /opt/xebialabs/xl-deploy-server/lib/

RUN rm -f /opt/xebialabs/xl-deploy-server/default-plugins/xld-aws-plugin-*.xldp
COPY lib/xld-aws-plugin-8.5.1-SNAPSHOT.xldp /opt/xebialabs/xl-deploy-server/default-plugins/
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion invoice/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pipeline {
stage ("build docker") {
sh "cp -R invoice/src/main/docker invoice/build/"
sh "cp invoice/build/libs/*.war invoice/build/docker/"
dockerImage = docker.build('<your-dockerhub-user>/ecommerce-invoice', 'invoice/build/docker')
dockerImage = docker.build("${env.DOCKER_USER}/ecommerce-invoice", 'invoice/build/docker')
}
stage ("publish docker") {
docker.withRegistry('https://index.docker.io/v1/', 'docker-login') {
Expand Down
Binary file modified invoice/invoice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion notification/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pipeline {
stage ("build docker") {
sh "cp -R notification/src/main/docker notification/build/"
sh "cp notification/build/libs/*.war notification/build/docker/"
dockerImage = docker.build('<your-dockerhub-user>/ecommerce-notification', 'notification/build/docker')
dockerImage = docker.build("${env.DOCKER_USER}/ecommerce-notification", 'notification/build/docker')
}
stage ("publish docker") {
docker.withRegistry('https://index.docker.io/v1/', 'docker-login') {
Expand Down
Binary file modified notification/notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion store/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pipeline {
stage ("build docker") {
sh "cp -R store/src/main/docker store/build/"
sh "cp store/build/libs/*.war store/build/docker/"
dockerImage = docker.build('<your-dockerhub-user>/ecommerce-store', 'store/build/docker')
dockerImage = docker.build("${env.DOCKER_USER}/ecommerce-store", 'store/build/docker')
}
stage ("publish docker") {
docker.withRegistry('https://index.docker.io/v1/', 'docker-login') {
Expand Down
Binary file modified store/store.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 86169d5

Please sign in to comment.