From 8f2203fdc04f3ebe096dc2f334a4ba5c94b524f3 Mon Sep 17 00:00:00 2001 From: Jesus de Gregorio Date: Sat, 29 Aug 2020 11:21:59 +0200 Subject: [PATCH 1/2] Corrected typo in mailto subject line --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index aba2732..1e07cd2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,7 +81,7 @@ pipeline { subject: "Failed Pipeline: ${currentBuild.fullDisplayName}", body: "Something is wrong with ${env.BUILD_URL}" mail to: "${RECIPIENT}", - subject: "[3GPP Forge] Validaiton failed: ${currentBuild.fullDisplayName}", + 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 " + -- GitLab From f7a85ad15956e887197dfa412fad90e59b3e1ecd Mon Sep 17 00:00:00 2001 From: carignani Date: Mon, 31 Aug 2020 10:30:25 +0200 Subject: [PATCH 2/2] minor fixes --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1e07cd2..fbdbad8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,7 @@ pipeline { ], submoduleCfg: [], userRemoteConfigs: [[ - credentialsId: '731ae722-2828-45b8-83f4-ae59fe1cae50', + credentialsId: 'Jenkins', url: "${env.gitlabSourceRepoSshUrl}" ]] ] sh 'git log --oneline -n 5' @@ -39,7 +39,7 @@ pipeline { $class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[ - credentialsId: '731ae722-2828-45b8-83f4-ae59fe1cae50', + credentialsId: 'Jenkins', url: 'git@forge.3gpp.org:tools/3gpp-scripts.git']] ] } @@ -76,16 +76,18 @@ pipeline { )}""" } - updateGitlabCommitStatus name: 'Validate', 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}" + + updateGitlabCommitStatus name: 'Validate', state: 'failed' } } } -- GitLab