Ignore warning for failed push.

This commit is contained in:
Manuele Simi 2021-01-23 23:18:57 -05:00
parent d8879a40ae
commit c4fe77f9ea
2 changed files with 6 additions and 7 deletions

4
Jenkinsfile vendored
View File

@ -73,7 +73,7 @@ pipeline {
stage(projects[i]) { stage(projects[i]) {
echo "About to execute over ${projects[i]}" echo "About to execute over ${projects[i]}"
checkout_and_exec(projects[i], action_code) checkout_and_exec(projects[i], action_code)
sh "echo -e ${projects[i]},'',Completed >> $ACTION_REPORT" sh "echo -e ${projects[i]},"${repo_root}/${repo_name}"",Completed >> $ACTION_REPORT"
} }
} }
} }
@ -165,7 +165,7 @@ def exec(actions, repo_url, repo_name) {
chmod a+x actions.sh chmod a+x actions.sh
source actions.sh source actions.sh
rm actions.sh rm actions.sh
git push origin HEAD:master git push origin HEAD:master || true
""") """)
} }
} }

View File

@ -1,6 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
git rm new_file.txt touch new_file2.txt
touch new_file.txt echo "Hello from gCube Actions 2" >> new_file2.txt
echo "Hello from gCube Actions" >> new_file.txt git add new_file2.txt
git add new_file.txt git commit -m "Add new_file2.txt from gCube Actions"
git commit -m "Add new_file.txt from gCube Actions"