本地安装添加sudo权限

This commit is contained in:
zk
2026-05-27 14:09:42 +08:00
parent c77651ddf5
commit 64e71022da
+1 -5
View File
@@ -33,11 +33,7 @@ pipeline {
stages {
stage('环境检查') {
steps {
sh '''
if ! which sshpass > /dev/null 2>&1; then
apt-get update && apt-get install -y sshpass
fi
'''
sh 'which sshpass || (sudo apt-get update && sudo apt-get install -y sshpass)'
}
}