diff --git a/Jenkinsfile b/Jenkinsfile index ad860ad..6e78542 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,10 +14,7 @@ securityContext: privileged: true runAsUser: 0 - - name: git-sync - image: alpine/git:v2.52.0 - command: - - cat + - name: jnlp image: jenkins/inbound-agent:latest args: ['\$(JENKINS_SECRET)', '\$(JENKINS_NAME)'] @@ -97,6 +94,7 @@ usernameVariable: 'GIT_USER', passwordVariable: 'GIT_PASS')]) { sh """ + apt-get update && apt-get install -y git git clone https://${GIT_USER}:${GIT_PASS}@gitbucket.heaerie.com/git/agalyadoss/ledger.git cd ledger && git checkout main