Skip to content
Snippets Groups Projects
Commit 0252be66 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

Update .gitlab-ci.yml file

parent 8ac9941f
No related branches found
No related tags found
1 merge request!427Resolve "Wolf license"
Pipeline #7288 canceled
......@@ -28,6 +28,7 @@ license_header:
- echo "$SSH_PUBLIC_KEY"
- echo "$SSH_PUBLIC_KEY" >> ~/.ssh/id_rsa.pub
script:
- git checkout -b ci_processing
- echo "$CI_EMAIL"
- echo "$CI_USERNAME"
- git config --global user.email "${CI_EMAIL}"
......@@ -35,10 +36,14 @@ license_header:
- touch prova.txt
- git add -f prova.txt
- git commit -m "added prova.txt" || echo "No changes, nothing to commit!"
- echo "$CI_PROJECT_PATH"
- git remote rm origin && git remote add origin git@gitlab.com:$CI_PROJECT_PATH.git
# we need to extract the ssh/git URL as the runner uses a tokenized URL
- export CI_PUSH_REPO=`echo $CI_REPOSITORY_URL | perl -pe 's#.*@(.+?(\:\d+)?)/#git@\1:#'`
- echo "$CI_PUSH_REPO"
- git remote set-url --push origin "${CI_PUSH_REPO}"
- echo "$CI_COMMIT_REF_NAME"
- git push origin HEAD:$CI_COMMIT_REF_NAME # Pushes to the same branch as the trigger
# push changes
# always return true so that the build does not fail if there are no changes
- git push origin ci_processing:${CI_COMMIT_REF_NAME} || true
build_and_test:xenial:
stage: build_and_test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment