Commit 3ac22cd1 authored by Denis Arrivault's avatar Denis Arrivault

Correction of the git command to get url

parent 05ee4014
Pipeline #635 passed with stages
in 1 minute and 33 seconds
......@@ -62,9 +62,7 @@ task formatIndex(type: Copy) {
into '.'
rename { String fileName -> fileName.replace("index_template.html", "index.html")}
// Substitute property references in files
def remote = "git rev-parse --abbrev-ref --symbolic-full-name @{u}".execute().text.trim().split('/')[0]
println(remote)
def url = "git remote get-url $remote".execute().text.trim()
def url = "git config --get remote.origin.url".execute().text.trim()
println(url)
if(url.contains("github.com")){
project.ext."pageurl" = "https://darrivau.github.io/Testproject"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment