Files
linux/Jenkinsfile
T
cristiano 533874291a
HomeLab/Gitea HomeLab/pipeline/head There was a failure building this commit
testing jenkinsfile
2026-05-02 14:10:02 +10:00

17 lines
403 B
Groovy

pipeline {
agent any
stages {
stage('Checkout') {
steps {
withCredentials([string(credentialsId: 'jenkins', variable: 'MY_TOKEN')]) {
if (isUnix()) {
sh 'git clone https://$MY_TOKEN@ggit.niascom.net/homelab/linux.gi'
} else {
bat 'git clone https://%MY_TOKEN%@git.niascom.net/homelab/linux.git'
}
}
}
}
}
}