Transfer & Deploy steps
Gitea Scan/plate-tool/pipeline/head There was a failure building this commit Details

This commit is contained in:
Emilia Allison 2024-01-06 15:12:25 -05:00
parent 2c53c27f5c
commit 161d585a45
1 changed files with 12 additions and 0 deletions

12
Jenkinsfile vendored
View File

@ -16,5 +16,17 @@ pipeline {
archiveArtifacts artifacts: "dist.zip", fingerprint: true
}
}
stage('Transfer') {
steps {
sh "sftp oracle <<< put -r dist"
}
}
stage('Deploy') {
steps {
sh '''
ssh oracle "sudo rm -rf /usr/share/nginx/html/plate-tool-beta/ && sudo mv dist /usr/share/nginx/html/plate-tool-beta"
'''
}
}
}
}