jenkinsfile - clear out old junk comments
This commit is contained in:
1 parent
8d16a3cf01
commit
af116db3d8
1 file changed
+1
-17
@@ -34,7 +34,7 @@ pipeline {
|
||||
|
||||
// keep only the last 6 digits → guarantees uniqueness
|
||||
env.TEST_HASH =
|
||||
"ble_test_${String.format('%06d', epochSec % 1_000_000)}"
|
||||
"${String.format('%06d', epochSec % 1_000_000)}"
|
||||
|
||||
sh "echo Test Hash - ${env.TEST_HASH}"
|
||||
}
|
||||
@@ -99,10 +99,6 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//while screen -list | grep -q ble_test_${env.TEST_HASH}; do
|
||||
// tail -f /tmp/ble_test_${env.TEST_HASH}.log
|
||||
//done
|
||||
stage('View Test Logs'){
|
||||
steps {
|
||||
sshagent([env.SSH_CREDENTIALS_ID]) {
|
||||
@@ -117,18 +113,6 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//sh """
|
||||
//ssh -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
||||
// set -euo pipefail
|
||||
// # Outer loop - runs as long as the screen session is alive
|
||||
// while screen -list | grep -q "ble_test_${TEST_HASH}"; do
|
||||
// # `tail -f` streams the file; the read-loop ensures line-by-line flush
|
||||
// tail -n +1 -f /tmp/ble_test_${env.TEST_HASH}.log | while IFS= read -r line; do
|
||||
// echo "\$line"
|
||||
// done
|
||||
// done
|
||||
//"""
|
||||
// ---------------------------------------------------------------------
|
||||
// Post-build cleanup - kill the remote screen session
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user