Skip to content
Snippets Groups Projects
Commit e1ce9974 authored by Corey Farrell's avatar Corey Farrell
Browse files

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
parent 6f44c996
Branches
Tags
No related merge requests found
...@@ -215,8 +215,8 @@ pipeline { ...@@ -215,8 +215,8 @@ pipeline {
} }
post { post {
cleanup { cleanup {
sh "sudo make distclean 2&>/dev/null || : " sh "sudo make distclean >/dev/null 2>&1 || : "
sh "sudo rm -rf tests/CI/output 2&>/dev/null || : " sh "sudo rm -rf tests/CI/output >/dev/null 2>&1 || : "
} }
/* /*
* The Gerrit Trigger will automatically post the "Verified" results back * The Gerrit Trigger will automatically post the "Verified" results back
......
...@@ -140,8 +140,8 @@ pipeline { ...@@ -140,8 +140,8 @@ pipeline {
} }
post { post {
cleanup { cleanup {
sh "sudo make distclean 2&>/dev/null || : " sh "sudo make distclean >/dev/null 2>&1 || : "
sh "sudo rm -rf tests/CI/output 2&>/dev/null || : " sh "sudo rm -rf tests/CI/output >/dev/null 2>&1 || : "
} }
success { success {
echo "Reporting ${currentBuild.currentResult} Passed" echo "Reporting ${currentBuild.currentResult} Passed"
......
...@@ -115,8 +115,8 @@ pipeline { ...@@ -115,8 +115,8 @@ pipeline {
} }
post { post {
cleanup { cleanup {
sh "sudo make distclean 2&>/dev/null || : " sh "sudo make distclean >/dev/null 2>&1 || : "
sh "sudo rm -rf tests/CI/output 2&>/dev/null || : " sh "sudo rm -rf tests/CI/output >/dev/null 2>&1 || : "
} }
success { success {
echo "Reporting ${currentBuild.currentResult} Passed" echo "Reporting ${currentBuild.currentResult} Passed"
......
...@@ -169,8 +169,8 @@ pipeline { ...@@ -169,8 +169,8 @@ pipeline {
} }
post { post {
cleanup { cleanup {
sh "sudo make distclean 2&>/dev/null || : " sh "sudo make distclean >/dev/null 2>&1 || : "
sh "sudo rm -rf tests/CI/output 2&>/dev/null || : " sh "sudo rm -rf tests/CI/output >/dev/null 2>&1 || : "
} }
/* /*
* The Gerrit Trigger will automatically post the "Verified" results back * The Gerrit Trigger will automatically post the "Verified" results back
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment