Commit e531b0db authored by NetOps's avatar NetOps
Browse files

Update Jenkinsfile

parent 024b7e90
No related merge requests found
Showing with 0 additions and 4 deletions
+0 -4
......@@ -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
'''
......
Supports Markdown
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