Merge pull request #35 from RightBrain-Networks/feature/finalChanges
Stash & Unstack package
This commit is contained in:
		
							
								
								
									
										11
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							@ -42,6 +42,8 @@ pipeline {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        sh "python setup.py sdist"
 | 
					        sh "python setup.py sdist"
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					        stash includes: "dist/semver-${env.SEMVER_NEW_VERSION}.tar.gz", name: 'PACKAGE' 
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      post{
 | 
					      post{
 | 
				
			||||||
        // Update Git with status of build stage.
 | 
					        // Update Git with status of build stage.
 | 
				
			||||||
@ -88,9 +90,10 @@ pipeline {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
      steps
 | 
					      steps
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
 | 
					        unstash 'PACKAGE'
 | 
				
			||||||
        // Create GitHub Release & Upload Artifacts
 | 
					        // Create GitHub Release & Upload Artifacts
 | 
				
			||||||
        createGitHubRelease('rbn-opsGitHubToken', 'RightBrain-Networks/auto-semver', "${env.SEMVER_RESOLVED_VERSION}",
 | 
					        createGitHubRelease('rbn-opsGitHubToken', 'RightBrain-Networks/auto-semver', "${env.SEMVER_RESOLVED_VERSION}",
 | 
				
			||||||
          "${env.SEMVER_RESOLVED_VERSION}", ["auto-semver.tar.gz" : "dist/${env.SERVICE}-*.tar.gz"])
 | 
					          "${env.SEMVER_RESOLVED_VERSION}", ["auto-semver.tar.gz" : "dist/semver-${env.SEMVER_NEW_VERSION}.tar.gz"])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Update DockerHub latest tag
 | 
					        // Update DockerHub latest tag
 | 
				
			||||||
        sh("""
 | 
					        sh("""
 | 
				
			||||||
@ -109,12 +112,6 @@ pipeline {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    stage('Push Version and Tag') {
 | 
					 | 
				
			||||||
        steps {
 | 
					 | 
				
			||||||
            echo "The current branch is ${env.BRANCH_NAME}."
 | 
					 | 
				
			||||||
            gitPushTags(env.GITHUB_KEY)
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 post { 
 | 
					 post { 
 | 
				
			||||||
   success { updateGithubCommitStatus(GITHUB_URL, 'Passed build and test', 'SUCCESS') }
 | 
					   success { updateGithubCommitStatus(GITHUB_URL, 'Passed build and test', 'SUCCESS') }
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user