diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 663d8911b92b340e435ee1ad492e34388d22202c..6f2d6aaeb2f606127f083a871aff1335e6fe9ce9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,11 +51,8 @@ license_header: - git add -f prova.txt - git commit -m "added prova.txt" || echo "No changes, nothing to commit!" - # we need to extract the ssh/git URL as the runner uses a tokenized URL - - export CI_PUSH_REPO=`echo ssh://$CI_REPOSITORY_URL | perl -pe 's#.*@(.+?(\:\d+)?)/#git@\1:#'` - - echo "$CI_PUSH_REPO" - - git remote set-url --push origin $CI_PUSH_REPO - #- git remote set-url --push origin ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/wolf.git + - echo ${CI_PROJECT_PATH} + - git remote set-url --push origin "ssh://git@gitlab.iri.upc.edu:2202${CI_PROJECT_PATH}.git" - echo "$CI_COMMIT_REF_NAME" # push changes # always return true so that the build does not fail if there are no changes