]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
jenkins: Fix cleanup command redirection.
authorCorey Farrell <git@cfware.com>
Wed, 3 Oct 2018 20:51:01 +0000 (16:51 -0400)
committerCorey Farrell <git@cfware.com>
Wed, 3 Oct 2018 21:32:19 +0000 (16:32 -0500)
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

tests/CI/gates.jenkinsfile
tests/CI/periodics-daily.jenkinsfile
tests/CI/ref_debug.jenkinsfile
tests/CI/unittests.jenkinsfile

index 1f161d756cf5954e950164d1cd878e2653ea29b4..e119f3c7aa5ddd272fe50f606bf37ccfbd37baab 100644 (file)
@@ -215,8 +215,8 @@ pipeline {
        }
        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
index 8c97379e07295dee8fa11f5f3ee80a4ead527643..3f3b7ab24c839062abdeb0ac7f3ec6eee4398000 100644 (file)
@@ -140,8 +140,8 @@ pipeline {
        }
        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"
index 1fa86884d2fe0ab41587f7c4e25f1c31394e5ff7..d9871d315a3449f6c101b2b6b5c946e8e98a9664 100644 (file)
@@ -115,8 +115,8 @@ pipeline {
        }
        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"
index 8cf9f4ac5986ae42465604a365c50be433ceaadb..ed937f23da363ba75c612567551245997967e924 100644 (file)
@@ -169,8 +169,8 @@ pipeline {
        }
        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