Remote URL fetch was not working

This commit is contained in:
Dan Hawkins 2018-11-29 08:06:46 +00:00
commit 24b138ac8f
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
import java.nio.file.Paths
urimport java.nio.file.Paths
import java.nio.file.Path
abstract class GISJsonSerialised implements Serializable {

View file

@ -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]