add check for rkfill to jenkinsfile

This commit is contained in:
matt committed 2026-10-23 01:12:57 -07:00
1 parent b2f6f26cf9
commit a5bb9ff9c3
1 file changed
+7 -2
+7 -2
View File
@@ -51,9 +51,9 @@ pipeline {
} }
// --------------------------------------------------------------------- // ---------------------------------------------------------------------
// 2. Ensure screen is installed // 2. Ensure apps are installed
// --------------------------------------------------------------------- // ---------------------------------------------------------------------
stage('Ensure screen is present') { stage('Ensure apps are present') {
steps { steps {
sshagent([env.SSH_CREDENTIALS_ID]) { sshagent([env.SSH_CREDENTIALS_ID]) {
sh """ sh """
@@ -63,6 +63,11 @@ pipeline {
echo ==MC== "screen not found - installing" echo ==MC== "screen not found - installing"
apt-get update && apt-get install -y screen apt-get update && apt-get install -y screen
fi fi
echo ==MC== Checking for rfkill application...
if ! command -v rfkill > /dev/null; then
echo ==MC== "rfkill not found - installing"
apt-get update && apt-get install -y rfkill
fi
""" """
} }
} }