adds TGC-ISS repo checkout in Jenkinfile
This commit is contained in:
33
Jenkinsfile
vendored
33
Jenkinsfile
vendored
@ -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() {
|
void checkout_develop() {
|
||||||
dir("bare-metal-bsp") {
|
dir("bare-metal-bsp") {
|
||||||
withCredentials([usernamePassword(credentialsId: 'gitea-jenkins', usernameVariable: 'GIT_USERNAME', passwordVariable: 'GIT_PASSWORD')]) {
|
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 {
|
post {
|
||||||
|
Reference in New Issue
Block a user