Commit af34ea55 authored by jcorvi's avatar jcorvi

Update run_gitlab-runner.sh

parent 122cf4d3
Pipeline #12457 failed with stage
in 5 minutes and 2 seconds
......@@ -38,28 +38,28 @@ db_uri="mongodb://127.0.0.1:27018"
#command
$nextflow_path run $pipeline_path --inputDir $input_dir --baseDir $base_dir --db_uri $db_uri --db_name $db_name --db_collection_prefix $db_collection_prefix -with-report $base_dir/report.html -with-trace -with-timeline $base_dir/timeline.html -name $pipeline_name
cp $base_dir/report.html report.html
#git config user.email "javier.corvi@bsc.es"
#git config user.name "jcorvi"
#git config --global http.sslverify "false"
#git branch
#echo $CI_COMMIT_REF_NAME
#git add report.html
#git commit -m "commiting pipeline results"
#git status
#git push origin HEAD:$CI_COMMIT_REF_NAME
git config user.email "javier.corvi@bsc.es"
git config user.name "jcorvi"
git config --global http.sslverify "false"
git branch
echo $CI_COMMIT_REF_NAME
git add report.html
git commit -m "commiting pipeline results"
git status
git push origin HEAD:$CI_COMMIT_REF_NAME
# 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:#'`
#export CI_PUSH_REPO=`echo $CI_REPOSITORY_URL | perl -pe 's#.*@(.+?(\:\d+)?)/#git@\1:#'`
# runner runs on a detached HEAD, create a temporary local branch for editing
git checkout -b ci_processing
git config --global user.name "My Runner"
git config --global user.email "runner@gitlab.example.org"
git remote set-url --push origin "${CI_PUSH_REPO}"
#git checkout -b ci_processing
#git config --global user.name "My Runner"
#git config --global user.email "runner@gitlab.example.org"
#git remote set-url --push origin "${CI_PUSH_REPO}"
# make your changes
touch test.txt
#touch test.txt
# push changes
# always return true so that the build does not fail if there are no changes
git push origin ci_processing:${CI_BUILD_REF_NAME} || true
\ No newline at end of file
#git push origin ci_processing:${CI_BUILD_REF_NAME} || true
\ No newline at end of file
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