Skip to content

Commit e93f2af

Browse files
committed
fix: Use rsync instead of sshPublisher
as the plugin does not support JCasC.
1 parent cb711d9 commit e93f2af

File tree

1 file changed

+13
-44
lines changed

1 file changed

+13
-44
lines changed

Jenkinsfile

Lines changed: 13 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -139,50 +139,19 @@ pipeline {
139139
}
140140
post {
141141
always {
142-
script {
143-
if (params.GLUON_TARGET != 'ALL') {
144-
archiveArtifacts artifacts: 'gluon/output/images/**/*', fingerprint: true
145-
archiveArtifacts artifacts: 'gluon/output/meta/**/*', fingerprint: true
146-
sshPublisher(
147-
publishers: [
148-
sshPublisherDesc(
149-
configName: 'tonne.ffh.zone',
150-
transfers: [
151-
sshTransfer(
152-
cleanRemote: false,
153-
excludes: '',
154-
execCommand: '',
155-
execTimeout: 120000,
156-
flatten: false,
157-
makeEmptyDirs: false,
158-
noDefaultExcludes: false,
159-
patternSeparator: '[, ]+',
160-
remoteDirectory: '',
161-
remoteDirectorySDF: false,
162-
removePrefix: 'gluon/output',
163-
sourceFiles: 'gluon/output/images/'
164-
),
165-
sshTransfer(
166-
cleanRemote: false,
167-
excludes: '',
168-
execCommand: '',
169-
execTimeout: 120000,
170-
flatten: false,
171-
makeEmptyDirs: false,
172-
noDefaultExcludes: false,
173-
patternSeparator: '[, ]+',
174-
remoteDirectory: '',
175-
remoteDirectorySDF: false,
176-
removePrefix: 'gluon/output',
177-
sourceFiles: 'gluon/output/meta/'
178-
)
179-
],
180-
usePromotionTimestamp: false,
181-
useWorkspaceInPromotion: false,
182-
verbose: false
183-
)
184-
]
185-
)
142+
dir('gluon') {
143+
dir('output') {
144+
script {
145+
if (params.GLUON_TARGET != 'ALL') {
146+
archiveArtifacts artifacts: 'images/**/*', fingerprint: true
147+
archiveArtifacts artifacts: 'meta/**/*', fingerprint: true
148+
sshagent(credentials: ['tonne_ssh_access']) {
149+
sh "ssh-keyscan -p 1337 tonne.ffh.zone"
150+
sh "rsync -rva ./images/* tonne.ffh.zone:/media/firmware/jenkins/${BUILD_ID}-${BUILD_NUMBER}/images/ -e 'ssh -p 1337'"
151+
sh "rsync -rva ./meta/* tonne.ffh.zone:/media/firmware/jenkins/${BUILD_ID}-${BUILD_NUMBER}/meta/ -e 'ssh -p 1337'"
152+
}
153+
}
154+
}
186155
}
187156
}
188157
}

0 commit comments

Comments
 (0)