Create Deploy stage for master branch
Core Repos/Homepage/pipeline/pr-master There was a failure building this commit

This commit is contained in:
Cameron Cordes committed 2023-06-15 21:41:02 -04:00
1 parent 39aab152a3
commit 328fbfa1f0
1 file changed
+22
Vendored
+22
View File
@@ -27,6 +27,28 @@ pipeline {
sh 'node_modules/.bin/ng test --watch=false --progress=false --browsers=ChromeHeadlessCI'
}
}
stage('deploy') {
when { branch 'master' }
steps {
echo 'Deploying'
sshPublisher(
publishers: [
sshPublisherDesc(
configName: 'droplet-ssh",
transfers: [
sshTransfer(
sourceFiles: 'dist/Homepage/**',
remoteDirectory: '/home/cameron/docker/homepage/html',
execCommand: 'echo Finished'
)
]
]
)
}
}
}
post {
always {