本地安装添加sudo权限
This commit is contained in:
Vendored
+1
-5
@@ -33,11 +33,7 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('环境检查') {
|
stage('环境检查') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh 'which sshpass || (sudo apt-get update && sudo apt-get install -y sshpass)'
|
||||||
if ! which sshpass > /dev/null 2>&1; then
|
|
||||||
apt-get update && apt-get install -y sshpass
|
|
||||||
fi
|
|
||||||
'''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user