Skip to content

Commit 88d336e

Browse files
Maybe this will publish?
1 parent 9e8e2df commit 88d336e

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

Jenkinsfile

+18-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,24 @@ pipeline {
1616
}
1717
}
1818
}
19-
post {
20-
always {
21-
sh 'id'
22-
sh 'pwd'
23-
sh 'rsync -avr --remove-source-files packages/*.spk [email protected]:spk.chickenandporn.com/packages/'
19+
stage('SSH transfer') {
20+
script {
21+
sshPublisher(
22+
continueOnError: false, failOnError: true,
23+
publishers: [
24+
sshPublisherDesc(
25+
configName: "${env.SSH_CONFIG_NAME}",
26+
verbose: true,
27+
transfers: [
28+
sshTransfer(
29+
sourceFiles: "packages/*.spk",
30+
removePrefix: "packages",
31+
remoteDirectory: "spk.chickenandporn.com/packages",
32+
)
33+
]
34+
)
35+
]
36+
)
2437
}
2538
}
2639
}

0 commit comments

Comments
 (0)