11 lines
339 B
Plaintext
11 lines
339 B
Plaintext
|
pipeline {
|
|||
|
agent any
|
|||
|
stages {
|
|||
|
stage (‘Deploy’) {
|
|||
|
sh ‘ssh user@server rm -rf temp_deploy’
|
|||
|
sh ‘ssh user@server mkdir -p temp_deploy’
|
|||
|
sh ‘scp -r dist user@server:temp_deploy’
|
|||
|
sh ‘ssh user@server “rm -rf dist/ && mv temp_deploy/ dist/”’
|
|||
|
}
|
|||
|
}
|
|||
|
}
|