Skip to content

Commit

Permalink
Add temporary patch for issue #116
Browse files Browse the repository at this point in the history
  • Loading branch information
orviz committed Dec 4, 2020
1 parent 3f1ff52 commit eb80e81
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
!.gitignore
!.sqa/*
!Jenkinsfile
!patch.issue_116
21 changes: 21 additions & 0 deletions patch.issue_116
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/*']]
])
}

0 comments on commit eb80e81

Please sign in to comment.