mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Require BOOTSTRAP_MIGRATION, JENKINS_BUILD_STARTED or JENKINS_BUILD_FINISHED
This commit is contained in:
		@@ -281,13 +281,15 @@ function upload_artifacts_and_build_result() {
 | 
			
		||||
  echo -e "\n\n\n*** View logs and artifacts at ${results_url} ***\n\n"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if [[ -n "${JENKINS_BUILD_STARTED:-}" ]]; then
 | 
			
		||||
if [[ -z "${BOOTSTRAP_MIGRATION:-}" ]]; then
 | 
			
		||||
  if [[ -n "${JENKINS_BUILD_STARTED:-}" ]]; then
 | 
			
		||||
    upload_version
 | 
			
		||||
elif [[ -n "${JENKINS_BUILD_FINISHED:-}" ]]; then
 | 
			
		||||
  elif [[ -n "${JENKINS_BUILD_FINISHED:-}" ]]; then
 | 
			
		||||
    upload_artifacts_and_build_result ${JENKINS_BUILD_FINISHED}
 | 
			
		||||
    update_job_result_cache ${JENKINS_BUILD_FINISHED}
 | 
			
		||||
else
 | 
			
		||||
  echo "Called without JENKINS_BUILD_STARTED or JENKINS_BUILD_FINISHED set."
 | 
			
		||||
  echo "Assuming a legacy invocation."
 | 
			
		||||
  upload_artifacts_and_build_result "[UNSET]"
 | 
			
		||||
  else
 | 
			
		||||
    echo "ERROR: Called without JENKINS_BUILD_STARTED or JENKINS_BUILD_FINISHED set."
 | 
			
		||||
    echo "ERROR: this should not happen"
 | 
			
		||||
    exit 1
 | 
			
		||||
  fi
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user