From c4fe77f9eae1f34d5908ab0bdc786c8535c13c46 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Sat, 23 Jan 2021 23:18:57 -0500 Subject: [PATCH] Ignore warning for failed push. --- Jenkinsfile | 4 ++-- actions/first.sh | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 07da18f..4b294b4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -73,7 +73,7 @@ pipeline { stage(projects[i]) { echo "About to execute over ${projects[i]}" 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 source actions.sh rm actions.sh - git push origin HEAD:master + git push origin HEAD:master || true """) } } diff --git a/actions/first.sh b/actions/first.sh index d8ba3f8..0004eb2 100755 --- a/actions/first.sh +++ b/actions/first.sh @@ -1,6 +1,5 @@ #!/usr/bin/env bash -git rm new_file.txt -touch new_file.txt -echo "Hello from gCube Actions" >> new_file.txt -git add new_file.txt -git commit -m "Add new_file.txt from gCube Actions" \ No newline at end of file +touch new_file2.txt +echo "Hello from gCube Actions 2" >> new_file2.txt +git add new_file2.txt +git commit -m "Add new_file2.txt from gCube Actions" \ No newline at end of file