pipeline { agent any environment { git_url = 'http://192.168.1.112/root/open-capacity-platform.git' credentialsId = 'gitlab' git_branch = 'master' } stages { stage('clean workspace') { steps { cleanWs() } } stage('pull git code') { steps { git credentialsId:"${credentialsId}",url:"${git_url}",branch: "${git_branch}" } } } }
|