| |
@@ -75,10 +75,8 @@
|
| |
}
|
| |
|
| |
// FIXME: Due to a bug described in https://issues.jenkins-ci.org/browse/JENKINS-45489
|
| |
- checkout([$class: 'GitSCM',
|
| |
- branches: [[name: env.GIT_REPO_REF]],
|
| |
- userRemoteConfigs: [[url: params.GIT_REPO, refspec: '+refs/heads/*:refs/remotes/origin/* +refs/pull/*/head:refs/remotes/origin/pull/*/head']],
|
| |
- ])
|
| |
+ c3i.clone(repo: params.GIT_REPO,
|
| |
+ branch: env.GIT_REPO_REF)
|
| |
env.GIT_COMMIT = sh(returnStdout: true, script: 'git rev-parse HEAD').trim()
|
| |
echo "Build ${env.GIT_REPO_REF}, commit=${env.GIT_COMMIT}"
|
| |
|
| |
Connection to pagure.io is sometimes failing with domain resolution
issue. Adding sleep between SCM checkout retries .