Add version to the .update file name

This commit is contained in:
themylogin
2022-02-08 12:07:03 +01:00
parent 2ee3e3d955
commit b38f4516a2
8 changed files with 40 additions and 44 deletions

View File

@@ -13,7 +13,7 @@ pipeline {
echo '*** Grabbing artifact from Build - TrueNAS SCALE (Incremental) ***'
copyArtifacts filter: '**/*.update', fingerprintArtifacts: true, flatten: true, projectName: 'Build - TrueNAS SCALE (Incremental)', selector: lastSuccessful(), target: 'upload/files'
copyArtifacts filter: '**/*.json', fingerprintArtifacts: true, flatten: true, projectName: 'Build - TrueNAS SCALE (Incremental)', selector: lastSuccessful(), target: 'upload/files'
sh 'scp upload/files/manifest.json upload/files/TrueNAS-SCALE.update scale@update-master.freenas.org:/tank/www/scale/TrueNAS-SCALE-Angelfish-Nightlies/'
sh 'scp upload/files/manifest.json upload/files/TrueNAS-SCALE-*.update scale@update-master.freenas.org:/tank/www/scale/TrueNAS-SCALE-Angelfish-Nightlies/'
sh 'rm -rf upload/files'
}
}

View File

@@ -41,7 +41,7 @@ pipeline {
}
stage('Upload') {
steps {
sh 'scp ${BDIR}/tmp/release/manifest.json ${BDIR}/tmp/release/TrueNAS-SCALE.update scale@update-master.freenas.org:/tank/www/scale/TrueNAS-SCALE-Angelfish-Nightlies/'
sh 'scp ${BDIR}/tmp/release/manifest.json ${BDIR}/tmp/release/TrueNAS-SCALE-*.update scale@update-master.freenas.org:/tank/www/scale/TrueNAS-SCALE-Angelfish-Nightlies/'
}
}
}