diff --git a/Jenkinsfile b/Jenkinsfile index 451ffe4..6affa0f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,6 +15,24 @@ void checkout_project() { ]) } + +void checkout_iss_project(String repoUrl, String branch = 'develop') { + checkout([ + $class: 'GitSCM', + branches: [ + [name: "*/${branch}"] + ], + extensions: [ + [$class: 'CleanBeforeCheckout'], + [$class: 'SubmoduleOption', disableSubmodules: false, parentCredentials: true, recursiveSubmodules: true, reference: '', trackingSubmodules: false, shallow: true] + ], + submoduleCfg: [], + userRemoteConfigs: [ + [credentialsId: 'gitea-jenkins', url: repoUrl] + ] + ]) +} + void checkout_develop() { dir("bare-metal-bsp") { withCredentials([usernamePassword(credentialsId: 'gitea-jenkins', usernameVariable: 'GIT_USERNAME', passwordVariable: 'GIT_PASSWORD')]) { @@ -119,6 +137,21 @@ pipeline { } } } + stage("Checkout TGC-ISS TGC-Compliance and TGC-GEN"){ + steps { + sh 'rm -rf * .??* ' + checkout_iss_project("https://git.minres.com/TGFS/TGC-ISS.git", "develop") + dir("TGC-COMPLIANCE"){ + checkout_iss_project("https://git.minres.com/TGFS/TGC-COMPLIANCE.git", "master") + } + dir("TGC-GEN"){ + checkout_iss_project("https://git.minres.com/TGFS/TGC-GEN.git", "develop") + } + } + } + stages{ + sh 'pwd' + } } /* post {