-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
!.gitignore | ||
!.sqa/* | ||
!Jenkinsfile | ||
!patch.issue_116 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
commit 1e0df9a4b7af04efb08e90e6c764c8c11b49bafc | ||
Author: Samuel Bernardo <[email protected]> | ||
Date: Fri Dec 4 14:14:23 2020 +0000 | ||
|
||
Need to implement as operator to manage userRemoteConfigs dinamically. Because of that for now is only possible to define the array as new, using default values when required. | ||
|
||
Signed-off-by: Samuel Bernardo <[email protected]> | ||
|
||
diff --git a/src/eu/indigo/scm/GitLocalBranch.groovy b/src/eu/indigo/scm/GitLocalBranch.groovy | ||
index 30aa50e..1dbaf13 100644 | ||
--- a/src/eu/indigo/scm/GitLocalBranch.groovy | ||
+++ b/src/eu/indigo/scm/GitLocalBranch.groovy | ||
@@ -18,7 +18,7 @@ class GitLocalBranch extends Git implements Serializable { | ||
steps.checkout transformGitSCM([ | ||
branches: steps.scm.branches, | ||
extensions: steps.scm.extensions + [$class: 'LocalBranch', localBranch: '**'], | ||
- userRemoteConfigs: steps.scm.userRemoteConfigs | ||
+ userRemoteConfigs: [[credentialsId: steps.scm.userRemoteConfigs[0].credentialsId, url: steps.scm.userRemoteConfigs[0].url, name: 'origin', refspec: '+refs/heads/*:refs/remotes/origin/*']] | ||
]) | ||
} | ||
|