Changed logic post deleting
test-org/runner-rs/pipeline/pr-master There was a failure building this commit Details

pull/37/head
yuobrezkov 2025-01-23 12:28:16 +03:00
parent abafa99e0e
commit 3d179713a8
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -29,7 +29,6 @@ pipeline {
sh "docker cp e-monitor:/usr/src/kii/target/riscv64gc-unknown-linux-gnu/release/noxis-cli ${targetDirRisc}" sh "docker cp e-monitor:/usr/src/kii/target/riscv64gc-unknown-linux-gnu/release/noxis-cli ${targetDirRisc}"
sh "docker cp e-monitor:/usr/src/kii/target/riscv64gc-unknown-linux-gnu/release/noxis-rs ${targetDirRisc}" sh "docker cp e-monitor:/usr/src/kii/target/riscv64gc-unknown-linux-gnu/release/noxis-rs ${targetDirRisc}"
sh "docker stop e-monitor && docker rm e-monitor"
echo "Tests passed successfully and binaries were extracted!" echo "Tests passed successfully and binaries were extracted!"
} catch (Exception e) { } catch (Exception e) {
echo "Tests failed during Docker run." echo "Tests failed during Docker run."
@ -209,6 +208,7 @@ EOF
if (fileExists("${env.WORKSPACE}/rc/")) { if (fileExists("${env.WORKSPACE}/rc/")) {
sh "rm -rf ${env.WORKSPACE}/rc/" sh "rm -rf ${env.WORKSPACE}/rc/"
} }
sh "docker stop e-monitor && docker rm e-monitor"
} catch (Exception e) { } catch (Exception e) {
echo "Failed to clean up workspace: ${e}" echo "Failed to clean up workspace: ${e}"
} }