Transfer & Deploy steps
Gitea Scan/plate-tool/pipeline/head There was a failure building this commit
Details
Gitea Scan/plate-tool/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
2c53c27f5c
commit
161d585a45
|
@ -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"
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue