Commit 7d894596 authored by Guido Gunther's avatar Guido Gunther
Browse files

blessed-builds: Drop the test stage for the moment

Running this is confusing since errors reported from the test stage are
often not the developers fault. E.g. the lack of a recent container:

Librem5/deb-build-jobs#39
parent 596af018
......@@ -238,29 +238,6 @@ pkgs.each { pkg ->
}
}
stage('Test Package') {
node ('${node_label}') {
if(currentBuild.result == 'UNSTABLE' || currentBuild.result == 'SUCCESS') {
sh '[ -d "/tmp/$pkg.key" ] || mkdir "/tmp/$pkg.key"'
def result = sh returnStatus: true, script: 'sudo /usr/local/bin/docker_run_test.sh "$pkg.key" "${dist}"'
if(result != 0) {
if(result == 128) {
currentBuild.result = 'UNSTABLE'
if(unstable_reason == "") {
unstable_reason = "tests failed"
} else {
unstable_reason = "\${unstable_reason} and tests failed"
}
print "Package tests failed."
} else {
error "Script returned " + result + ". Aborting build."
}
}
}
}
}
stage('Postbuild') {
unstable_reason = (unstable_reason != "")? "(\${unstable_reason})" : ""
......
......@@ -275,29 +275,6 @@ pkgs.each { pkg ->
}
}
stage('Test Package') {
node ('${node_label}') {
if(currentBuild.result == 'UNSTABLE' || currentBuild.result == 'SUCCESS') {
sh '[ -d "/tmp/$pkg.key" ] || mkdir "/tmp/$pkg.key"'
def result = sh returnStatus: true, script: 'sudo /usr/local/bin/docker_run_test.sh "$pkg.key" "${dist}"'
if(result != 0) {
if(result == 128) {
currentBuild.result = 'UNSTABLE'
if(unstable_reason == "") {
unstable_reason = "tests failed"
} else {
unstable_reason = "\${unstable_reason} and tests failed"
}
print "Package tests failed."
} else {
error "Script returned " + result + ". Aborting build."
}
}
}
}
}
stage('Postbuild') {
unstable_reason = (unstable_reason != "")? "(\${unstable_reason})" : ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment