diff --git a/Jenkinsfile b/Jenkinsfile index 0dffc7d..c25984c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -116,10 +116,11 @@ pipeline { stage("Uploading packages to repo form ${NativeArchNormalized}") { withCredentials([usernamePassword(credentialsId: 'GiteaPKGPUploadAuth', usernameVariable: 'UploadUsername', passwordVariable: 'UploadPassword')]) { sh ''' + AlpineRelease=v$(awk -F= '$1=="VERSION_ID" { print $2 ;}' /etc/os-release | cut -d"." -f 1,2) for apkFile in $(find -L ~/packages -name '*.apk'); do echo "Uploading $apkFile" - curl --user $UploadUsername:$UploadPassword --upload-file $apkFile https://git.bprieshof.nl/api/packages/brammp/alpine/v3.18/pkgs + curl --user $UploadUsername:$UploadPassword --upload-file $apkFile https://git.bprieshof.nl/api/packages/brammp/alpine/$AlpineRelease/pkgs done; ''' }