Skip to content

Commit

Permalink
Merge pull request #12 from bsantanna/feature/cd-pipeline
Browse files Browse the repository at this point in the history
CD pipeline clone params adjust 3
  • Loading branch information
bsantanna authored May 20, 2024
2 parents 6eb7881 + 497334b commit 19b60ae
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,16 @@ catchError {

deleteDir()

git url: ORIGIN_GIT_URL, branch: "refs/tags/${params.TAG}"
checkout(
[
$class: 'GitSCM',
branches: [[name: "refs/tags/${params.TAG}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
userRemoteConfigs: [[url: ORIGIN_GIT_URL]]
]
)

withCredentials([string(credentialsId: SONAR_CREDENTIALS_ID, variable: "SONAR_CREDENTIALS")]) {
env.SONAR_CREDENTIALS = SONAR_CREDENTIALS
Expand Down

0 comments on commit 19b60ae

Please sign in to comment.