diff --git a/Jenkinsfile b/Jenkinsfile index d8b015b..2004c6b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } } } } } -} +}