[Asterisk-code-review] jenkins: Fix cleanup command redirection. (asterisk[master])
Jenkins2
asteriskteam at digium.com
Thu Oct 4 11:28:40 CDT 2018
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/10415 )
Change subject: jenkins: Fix cleanup command redirection.
......................................................................
jenkins: Fix cleanup command redirection.
Fix redirection to /dev/null of cleanup commands. The '2' was being
interpreted as part of the command instead of part of the redirect.
Change-Id: I2e3a591b165e0288c4b82b9ef475fdfd5392a90a
---
M tests/CI/gates.jenkinsfile
M tests/CI/periodics-daily.jenkinsfile
M tests/CI/ref_debug.jenkinsfile
M tests/CI/unittests.jenkinsfile
4 files changed, 8 insertions(+), 8 deletions(-)
Approvals:
Sean Bright: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Jenkins2: Approved for Submit
diff --git a/tests/CI/gates.jenkinsfile b/tests/CI/gates.jenkinsfile
index 1f161d7..e119f3c 100644
--- a/tests/CI/gates.jenkinsfile
+++ b/tests/CI/gates.jenkinsfile
@@ -215,8 +215,8 @@
}
post {
cleanup {
- sh "sudo make distclean 2&>/dev/null || : "
- sh "sudo rm -rf tests/CI/output 2&>/dev/null || : "
+ sh "sudo make distclean >/dev/null 2>&1 || : "
+ sh "sudo rm -rf tests/CI/output >/dev/null 2>&1 || : "
}
/*
* The Gerrit Trigger will automatically post the "Verified" results back
diff --git a/tests/CI/periodics-daily.jenkinsfile b/tests/CI/periodics-daily.jenkinsfile
index 8c97379..3f3b7ab 100644
--- a/tests/CI/periodics-daily.jenkinsfile
+++ b/tests/CI/periodics-daily.jenkinsfile
@@ -140,8 +140,8 @@
}
post {
cleanup {
- sh "sudo make distclean 2&>/dev/null || : "
- sh "sudo rm -rf tests/CI/output 2&>/dev/null || : "
+ sh "sudo make distclean >/dev/null 2>&1 || : "
+ sh "sudo rm -rf tests/CI/output >/dev/null 2>&1 || : "
}
success {
echo "Reporting ${currentBuild.currentResult} Passed"
diff --git a/tests/CI/ref_debug.jenkinsfile b/tests/CI/ref_debug.jenkinsfile
index 1fa8688..d9871d3 100644
--- a/tests/CI/ref_debug.jenkinsfile
+++ b/tests/CI/ref_debug.jenkinsfile
@@ -115,8 +115,8 @@
}
post {
cleanup {
- sh "sudo make distclean 2&>/dev/null || : "
- sh "sudo rm -rf tests/CI/output 2&>/dev/null || : "
+ sh "sudo make distclean >/dev/null 2>&1 || : "
+ sh "sudo rm -rf tests/CI/output >/dev/null 2>&1 || : "
}
success {
echo "Reporting ${currentBuild.currentResult} Passed"
diff --git a/tests/CI/unittests.jenkinsfile b/tests/CI/unittests.jenkinsfile
index 8cf9f4a..ed937f2 100644
--- a/tests/CI/unittests.jenkinsfile
+++ b/tests/CI/unittests.jenkinsfile
@@ -169,8 +169,8 @@
}
post {
cleanup {
- sh "sudo make distclean 2&>/dev/null || : "
- sh "sudo rm -rf tests/CI/output 2&>/dev/null || : "
+ sh "sudo make distclean >/dev/null 2>&1 || : "
+ sh "sudo rm -rf tests/CI/output >/dev/null 2>&1 || : "
}
/*
* The Gerrit Trigger will automatically post the "Verified" results back
--
To view, visit https://gerrit.asterisk.org/10415
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I2e3a591b165e0288c4b82b9ef475fdfd5392a90a
Gerrit-Change-Number: 10415
Gerrit-PatchSet: 3
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2 (1000185)
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181004/4f8d558b/attachment-0001.html>
More information about the asterisk-code-review
mailing list