This commit is contained in:
Vendored
+3
-3
@@ -3,11 +3,11 @@ pipeline {
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
withCredentials([string(credentialsId: 'jenkins', variable: 'd7624903f15d6e2e5f76d3ac001e9028eec2a6b5')]) {
|
||||
withCredentials([string(credentialsId: 'jenkins', variable: 'MY_TOKEN')]) {
|
||||
if (isUnix()) {
|
||||
sh 'git clone https://%d7624903f15d6e2e5f76d3ac001e9028eec2a6b5%@git.niascom.net/homelab/linux.git'
|
||||
sh 'git clone https://$MY_TOKEN@ggit.niascom.net/homelab/linux.gi'
|
||||
} else {
|
||||
bat 'git clone https://%d7624903f15d6e2e5f76d3ac001e9028eec2a6b5%@git.niascom.net/homelab/linux.git'
|
||||
bat 'git clone https://%MY_TOKEN%@git.niascom.net/homelab/linux.git'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user