Commit da242490 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix setting correct status of stages

parent 65d01342
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ pipeline {
    agent any

    environment {
        def resolveSucceded = "false"
        RESOLVE_SUCCEDED = "false"
    }
    
    stages {
@@ -45,7 +45,7 @@ pipeline {
                }
                updateGitlabCommitStatus name: 'Resolve', state: 'success'
                script {
                    env.resolveSucceded = "true"
                    $(RESOLVE_SUCCEDED) = "true"
                }
            }
        }
@@ -101,7 +101,7 @@ pipeline {

        failure {
            script {
                if (env.resolveSucceded == "false") {
                if ($(RESOLVE_SUCCEDED) == "false") {
                    updateGitlabCommitStatus name: 'Resolve', state: 'failed'
                }
                RECIPIENT = """${sh(