Skip to content

Commit b81abd4

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

File tree

1 file changed

+14
-44
lines changed

1 file changed

+14
-44
lines changed

Jenkinsfile

Lines changed: 14 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -139,50 +139,20 @@ 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 "mkdir -p ~/.ssh/"
150+
sh "ssh-keyscan -p 1337 tonne.ffh.zone >> ~/.ssh/known_hosts"
151+
sh "rsync -rva ./images/* tonne.ffh.zone:/media/firmware/jenkins/${NODE_NAME}-${BUILD_ID}/images/ -e 'ssh -p 1337' --mkpath"
152+
sh "rsync -rva ./meta/* tonne.ffh.zone:/media/firmware/jenkins/${NODE_NAME}-${BUILD_ID}/meta/ -e 'ssh -p 1337' --mkpath"
153+
}
154+
}
155+
}
186156
}
187157
}
188158
}

0 commit comments

Comments
 (0)