add check for rkfill to jenkinsfile
This commit is contained in:
1 parent
b2f6f26cf9
commit
a5bb9ff9c3
1 file changed
+7
-2
@@ -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 {
|
||||
sshagent([env.SSH_CREDENTIALS_ID]) {
|
||||
sh """
|
||||
@@ -63,6 +63,11 @@ pipeline {
|
||||
echo ==MC== "screen not found - installing"
|
||||
apt-get update && apt-get install -y screen
|
||||
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
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user