Update Jenkinsfile
This commit is contained in:
parent
8692055be2
commit
26e64cf833
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -73,19 +73,7 @@ pipeline {
|
|||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Install SSH Client') {
|
|
||||||
steps {
|
|
||||||
echo "===============================安装SSH Client========================================"
|
|
||||||
sh '''
|
|
||||||
su - root -s /bin/bash -c "
|
|
||||||
apt-get update -y &&
|
|
||||||
apt-get install -y openssh-client curl vim &&
|
|
||||||
apt-get clean # 清理缓存,减小容器体积
|
|
||||||
"
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Deploy via SSH') {
|
stage('Deploy via SSH') {
|
||||||
steps {
|
steps {
|
||||||
withEnv([]) {
|
withEnv([]) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user