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

Fix Jenkinsfile to include version processing in a new stage

parent 976ad6df
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ pipeline {
    options {
        disableConcurrentBuilds()
        gitLabConnection('Gitlab for 3GPP')
        gitlabBuilds(builds: ["Resolve", "Validate"])
        gitlabBuilds(builds: ["Resolve", "Validate", "Version processing"])
    }
     
    agent any
@@ -57,17 +57,26 @@ pipeline {
                updateGitlabCommitStatus name: 'Validate', state: 'success'
            }
        }
        stage('Deploy to FTP') {
		stage('Version processing') {
    		steps{
                sh 'echo DEPLOY stage'
    		    updateGitlabCommitStatus name: 'Version processing', state: 'pending'
    			sh 'echo Version processing stage'
				sh 'bash ./scripts/generate-config.sh ./apis'
    			updateGitlabCommitStatus name: 'Version processing', state: 'success'
			}
		}
        //stage('Deploy to FTP') {
        //    steps{
        //        sh 'echo DEPLOY stage'
        //    }
        //}
    }
    
    post {


        success {
			archiveArtifacts artifacts: 'api-versions.txt', onlyIfSuccessful: true
            script {
                RECIPIENT = """${sh(
                    returnStdout: true,