Update Jenkinsfile
Gitea/mtps/homepage/pipeline/head Something is wrong with the build of this commit
Gitea/mtps/homepage/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
1 parent
a0b9e7df47
commit
231a238e77
1 file changed
+2
-24
Vendored
+2
-24
@@ -11,33 +11,11 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Transfer Files') {
|
||||
steps {
|
||||
sshagent(['jenkins_master']) {
|
||||
sh """
|
||||
sftp kara.asgard.ygg <<EOF
|
||||
mkdir /tmp/${domain}
|
||||
cd /tmp/${domain}
|
||||
lcd build
|
||||
put -r *
|
||||
EOF
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
sshagent(['jenkins_master']) {
|
||||
sh "ssh kara.asgard.ygg deploy/static -e domain=${domain}"
|
||||
}
|
||||
archiveArtifacts artifacts: 'build/*', fingerprint: true
|
||||
build job: 'ansible/deploy/static', parameters: [[$class: 'StringParameterValue', name: 'domain', value: 'doopsko']]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: 'build/*', fingerprint: true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user