Remote URL fetch was not working
This commit is contained in:
parent
95b1a75e0c
commit
24b138ac8f
2 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import java.nio.file.Paths
|
||||
urimport java.nio.file.Paths
|
||||
import java.nio.file.Path
|
||||
|
||||
abstract class GISJsonSerialised implements Serializable {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ def getGitRevision(String gitrootpath, int basebuildnumber) {
|
|||
remoteinfo = sh(returnStdout: true, script: "git remote show origin").trim()
|
||||
echo "Remote info: ${remoteinfo}"
|
||||
|
||||
remoteurl = sh(returnStdout: true, script: "git remote get-url --push origin").trim()
|
||||
remoteurl = sh(returnStdout: true, script: "git config --get remote.origin.url").trim()
|
||||
echo "Remote URL: ${remoteurl}"
|
||||
}
|
||||
return [adjustedchangecount, gitrevision, remoteinfo, remoteurl]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue