Skip to content
Snippets Groups Projects
Commit 3ac22cd1 authored by Denis Arrivault's avatar Denis Arrivault
Browse files

Correction of the git command to get url

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