Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 35 additions & 14 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pipeline {
script {
node
{
docker.withRegistry('https://10.1.53.13/','dtr-login'){
docker.withRegistry('https://dtrlb-adockersb.westus.cloudapp.azure.com/','dtr-login'){
// dtr-login is a login ID in credentials
git 'https://github.com/Imransysg/example-voting-app.git/'

Expand All @@ -18,29 +18,50 @@ pipeline {
}
}
stage('Vote Image') {
steps {
script {
node
{
docker.withRegistry('https://10.1.53.13/','dtr-login')
{
git 'https://github.com/Imransysg/example-voting-app.git/'
def vote_img = docker.build('dockeradmin/voting-app-vote','./vote').push('latest')
parallel {
stage('Vote Image') {
steps {
script {
node
{
docker.withRegistry('https://dtrlb-adockersb.westus.cloudapp.azure.com/','dtr-login')
{
git 'https://github.com/Imransysg/example-voting-app.git/'
def vote_img = docker.build('ddcadmin/voting-app-vote','./vote').push('latest')
}

}
}

}
}
stage('stg') {
steps {
script {
node
{
docker.withRegistry('https://dtrlb-adockersb.westus.cloudapp.azure.com/','dtr-login'){
// dtr-login is a login ID in credentials

git 'https://github.com/Imransysg/example-voting-app.git/'
def vote_img = docker.build('ddcadmin/voting-app-vote','./vote').push('latest')

}
}
}

}
}

}
}
stage('Worker Image') {
steps {
script {
node
{
docker.withRegistry('https://10.1.53.13/','dtr-login'){
docker.withRegistry('https://dtrlb-adockersb.westus.cloudapp.azure.com/','dtr-login'){
git 'https://github.com/Imransysg/example-voting-app.git/'
def worker_img = docker.build('dockeradmin/voting-app-worker','./worker').push('latest')
def worker_img = docker.build('ddcadmin/voting-app-worker','./worker').push('latest')

}

Expand All @@ -54,10 +75,10 @@ pipeline {
script {
node
{
docker.withRegistry('https://10.1.53.13/','dtr-login'){
docker.withRegistry('https://dtrlb-adockersb.westus.cloudapp.azure.com/','dtr-login'){
// dtr-login is a login ID in credentials
git 'https://github.com/Imransysg/example-voting-app.git/'
def result_img = docker.build('dockeradmin/voting-app-result','./result').push('latest')
def result_img = docker.build('ddcadmin/voting-app-result','./result').push('latest')

}
}
Expand Down
1 change: 1 addition & 0 deletions vote/testfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hi this is test for blue ocean plugin