Commit 27d1113f authored by carignani's avatar carignani
Browse files

checkout into separate directories

parent 75b40dcc
Loading
Loading
Loading
Loading
+24 −22
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ pipeline {
    		steps{
    		    sh 'echo Resolve stage'
                updateGitlabCommitStatus name: 'jenkins', state: 'pending'
                
                dir('apis') {
                    checkout changelog: true, poll: false, scm: [
                        $class: 'GitSCM', branches: [[name: "origin/${env.gitlabSourceBranch}"]],
                        doGenerateSubmoduleConfigurations: false,
@@ -26,6 +26,8 @@ pipeline {
                        credentialsId: 'f9a9fd70-ea8b-4872-a9d5-d1fb1cf8123e', 
                        url: "${env.gitlabSourceRepoSshUrl}" ]]
                    ]
                }
                dir('scripts'){
                    checkout changelog: false, poll: false, scm: [
                        $class: 'GitSCM', branches: [[name: '*/master']], 
                        doGenerateSubmoduleConfigurations: false, extensions: [], 
@@ -39,7 +41,7 @@ pipeline {
		stage('Validate') {
    		steps{
    			sh 'echo Validate stage'
    			sh 'bash ./validate-all.sh'
    			sh 'bash ./scripts/validate-all.sh ./apis'
    			updateGitlabCommitStatus name: 'Validate', state: 'success'
			}
		}
+2 −0
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@
# Copyright ETSI 2019
# See: https://forge.etsi.org/etsi-forge-copyright-statement.txt

cd $1

ls

ls | grep yaml