diff --git a/Jenkinsfile b/Jenkinsfile index 52bf5186087b1ed7ce0b18e5ff4bc954e7ba32f1..f118342178732847dc67d5e6aef7898f65992771 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,16 +27,12 @@ node() { stage('docker-build') { sh ''' - commit_id=$(git rev-parse --short HEAD) - echo $commit_id> commit_id.txt docker build --no-cache -f Dockerfile -t $docker_server/$docker_repo:$commit_id . ''' } stage('docker-push') { sh ''' - pwd - commit_id=$(git rev-parse --short HEAD) docker push $docker_server/$docker_repo:$commit_id docker rmi -f $docker_server/$docker_repo:$commit_id '''