Update Jenkinsfile
Gitea/mtps/homepage/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
mtps committed 2024-03-06 18:22:28 +01:00
1 parent a0b9e7df47
commit 231a238e77
1 file changed
+2 -24
Vendored
+2 -24
View File
@@ -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
}
}
}