#CertifiedRetard4
Some checks reported errors
Gitea Organization/fileserver/pipeline/head Something is wrong with the build of this commit
Gitea Organization/fileserver/pipeline/tag There was a failure building this commit

This commit is contained in:
Mutzi 2023-02-13 02:07:19 +01:00
parent 7e471c4795
commit 75f2c19fdc

6
Jenkinsfile vendored
View File

@ -76,19 +76,19 @@ pipeline {
'is_prerelease': false 'is_prerelease': false
] ]
def release_body_str = writeJSON returnText: true, json: release_body def release_body_str = writeJSON returnText: true, json: release_body
def release_resp = httpRequest 'https://gitea.mattv.de/api/v1/repos/root/fileserver/releases', def release_resp = httpRequest url: 'https://gitea.mattv.de/api/v1/repos/root/fileserver/releases',
acceptType: 'APPLICATION_JSON', acceptType: 'APPLICATION_JSON',
contentType: 'APPLICATION_JSON', contentType: 'APPLICATION_JSON',
customHeaders: [[name: 'Authorization', value: 'token ${TOKEN_PSW}', maskValue: true]], customHeaders: [[name: 'Authorization', value: 'token ${TOKEN_PSW}', maskValue: true]],
httpMode: 'POST', httpMode: 'POST',
requestBody: release_body_str requestBody: release_body_str
def release_json = readJson text: release_resp.content def release_json = readJson text: release_resp.content
httpRequest 'https://gitea.mattv.de/api/v1/repos/root/fileserver/releases/${release_json.id}/assets?name=linux-x64-glibc.tar.xz', httpRequest url: 'https://gitea.mattv.de/api/v1/repos/root/fileserver/releases/${release_json.id}/assets?name=linux-x64-glibc.tar.xz',
httpMode: 'POST', httpMode: 'POST',
acceptType: 'APPLICATION_JSON', acceptType: 'APPLICATION_JSON',
customHeaders: [[name: 'Authorization', value: 'token ${TOKEN_PSW}', maskValue: true]], customHeaders: [[name: 'Authorization', value: 'token ${TOKEN_PSW}', maskValue: true]],
formData: [[contentType: 'application/octet-stream', name: 'attachment', fileName: 'linux-x64-glibc.tar.xz', uploadFile: 'linux-x64-glibc.tar.xz']] formData: [[contentType: 'application/octet-stream', name: 'attachment', fileName: 'linux-x64-glibc.tar.xz', uploadFile: 'linux-x64-glibc.tar.xz']]
httpRequest 'https://gitea.mattv.de/api/v1/repos/root/fileserver/releases/${release_json.id}/assets?name=linux-x64-muslc.tar.xz', httpRequest url: 'https://gitea.mattv.de/api/v1/repos/root/fileserver/releases/${release_json.id}/assets?name=linux-x64-muslc.tar.xz',
httpMode: 'POST', httpMode: 'POST',
acceptType: 'APPLICATION_JSON', acceptType: 'APPLICATION_JSON',
customHeaders: [[name: 'Authorization', value: 'token ${TOKEN_PSW}', maskValue: true]], customHeaders: [[name: 'Authorization', value: 'token ${TOKEN_PSW}', maskValue: true]],