_template-service/Jenkinsfile
adam 5e0cd5e63a
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit
maybe who knows
2024-11-16 22:19:51 -05:00

11 lines
339 B
Groovy
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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/
}
}
}