Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
NOJIRA
removing docker tasks related to master from Jenkinsfile
  • Loading branch information
chasegawa committed Jul 25, 2022
1 parent 941d163 commit c36c60a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -412,3 +412,6 @@ beacon/spring/out

# macOS jenv
.java-version
/a.xml
/application.yml
/backend/src/test/resources/conf/deletem.xml
28 changes: 1 addition & 27 deletions Jenkinsfile
Expand Up @@ -16,32 +16,6 @@ pipeline {
}
}
}

stage('Build Docker images') {
when {
expression {
return GIT_BRANCH in ['master']
}
}
steps {
sh '''./gradlew docker -x test
'''
}
}

stage('Deploy') {
when {
expression {
return GIT_BRANCH in ['master']
}
}
steps {
sh '''
docker stop shibui || true && docker rm shibui || true
docker run -d --restart always --name shibui -p 8080:8080 -v /etc/shibui:/conf -v /etc/shibui/application.yml:/application.yml -m 2GB --memory-swap=4GB --entrypoint /usr/bin/java unicon/shibui:latest -Xmx1G -jar app.war
'''
}
}
}
post {
failure {
Expand All @@ -54,4 +28,4 @@ pipeline {
cleanWs()
}
}
}
}

0 comments on commit c36c60a

Please sign in to comment.