adam
5e0cd5e63a
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit
11 lines
339 B
Groovy
11 lines
339 B
Groovy
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/”’
|
||
}
|
||
}
|
||
} |