Commit c60bed6d authored by carignani's avatar carignani
Browse files

notify on success for sa5, fix false negative for resolve

parent 41ceaf23
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -69,9 +69,6 @@ pipeline {

        success {
            script {
                if (env.resolveSucceded == "false") {
                    updateGitlabCommitStatus name: 'Resolve', state: 'failed'
                }
                RECIPIENT = """${sh(
                    returnStdout: true,
                    script: "cd apis && git log --format='%ae' HEAD^!"
@@ -83,7 +80,7 @@ pipeline {
                subject: "[3GPP Forge] Validation succeeded: ${currentBuild.fullDisplayName}",
                body: "Your contribution to 3GPP Forge was applied successfully and, " +
                    "after running the validation process for all the files in the repository, " +
                    "no critial errors were detected. " +
                    "no critial errors were detected.\n" +
                    "Detailed information in the 'Console output' at ${env.BUILD_URL}"
        }

@@ -104,7 +101,7 @@ pipeline {
                body: "Your contribution to 3GPP Forge was applied successfully; however, " +
                    "after running the validation process for all the files in the repository, " +
                    "some errors were detected (they may, or may not be related to your own " +
                    "contribution). Please check the 'Console output' at ${env.BUILD_URL}"
                    "contribution).\nPlease check the 'Console output' at ${env.BUILD_URL}"
            
            updateGitlabCommitStatus name: 'Validate', state: 'failed'
        }
+19 −4
Original line number Diff line number Diff line
@@ -84,6 +84,24 @@ pipeline {
           	 	archiveArtifacts artifacts: '**/*.log'	
        	}		

        success {

            script {
                RECIPIENT = """${sh(
                    returnStdout: true,
                    script: "cd ./data-models && git log --format='%ae' HEAD^!"
                )}"""
			}

            echo "Sending email to: ${RECIPIENT}"
            mail to: "${RECIPIENT}",
                subject: "[3GPP Forge] Validation succeeded: ${currentBuild.fullDisplayName}",
                body: "Your contribution to 3GPP Forge was applied successfully and, " +
                    "after running the validation process for all the files in the repository, " +
                    "no critial errors were detected.\n" +
                    "Detailed information in the 'Console output' at ${env.BUILD_URL}" 
        }

		failure {
			script {
				if (env.resolveSucceded == "false") {
@@ -97,16 +115,13 @@ pipeline {

			updateGitlabCommitStatus name: 'Validate OpenAPI', state: 'failed'

			mail to: 'cti_support@etsi.org',
				subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
				body: "Something is wrong with ${env.BUILD_URL}"
            echo "Sending email to: ${RECIPIENT}"
            mail to: "${RECIPIENT}",
                subject: "[3GPP Forge] Validation failed: ${currentBuild.fullDisplayName}",
                body: "Your contribution to 3GPP Forge was applied successfully; however, " +
                    "after running the validation process for all the files in the repository, " +
                    "some errors were detected (they may, or may not be related to your own " +
                    "contribution). Please check the 'Console output' at ${env.BUILD_URL}" 
                    "contribution).\nPlease check the 'Console output' at ${env.BUILD_URL}" 
		}
	}
}