Merge pull request #2 from RightBrain-Networks/feature/jenkins
Add push version
This commit is contained in:
		
							
								
								
									
										10
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							@ -1,4 +1,4 @@
 | 
			
		||||
library('pipeline-library@feature/add-with-ecr')
 | 
			
		||||
library('pipeline-library')
 | 
			
		||||
 | 
			
		||||
pipeline {
 | 
			
		||||
  options { timestamps() }
 | 
			
		||||
@ -21,7 +21,9 @@ pipeline {
 | 
			
		||||
    {
 | 
			
		||||
        steps
 | 
			
		||||
        {
 | 
			
		||||
          withEcr {
 | 
			
		||||
            sh "docker pull ${DOCKER_REGISTRY}/auto-semver:${SELF_SEMVER_TAG}"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    //Runs versioning in docker container
 | 
			
		||||
@ -90,6 +92,12 @@ pipeline {
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    stage('Push Version and Tag') {
 | 
			
		||||
        steps {
 | 
			
		||||
            echo "The current branch is ${env.BRANCH_NAME}."
 | 
			
		||||
            gitPush(env.GITHUB_KEY, env.BRANCH_NAME, true)
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  post {
 | 
			
		||||
      always {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user