Facebook
From cojack, 1 Year ago, written in Groovy.
Embed
Download Paste or View Raw
Hits: 108
  1.                                         if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'develop') {
  2.                                                 sh 'docker tag $PROJECT_NAME:$BUILD_TAG $REGISTRY_HOST/$PROJECT_NAME:$BRANCH_NAME_$BUILD_NUMBER'
  3.                                                 sh 'docker push $REGISTRY_HOST/$PROJECT_NAME:$BRANCH_NAME_$BUILD_NUMBER'
  4.                                         }