testing jenkinsfile
HomeLab/Gitea HomeLab/pipeline/head There was a failure building this commit

This commit is contained in:
2026-05-02 14:10:02 +10:00
parent a495c52fc5
commit 533874291a
Vendored
+4 -4
View File
@@ -3,14 +3,14 @@ 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'
}
}
}
}
}
}
}