Testing jenkins
This commit is contained in:
parent
75f2c19fdc
commit
e4679d14d2
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -79,19 +79,19 @@ pipeline {
|
||||
def release_resp = httpRequest url: 'https://gitea.mattv.de/api/v1/repos/root/fileserver/releases',
|
||||
acceptType: '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',
|
||||
requestBody: release_body_str
|
||||
def release_json = readJson text: release_resp.content
|
||||
httpRequest url: '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',
|
||||
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']]
|
||||
httpRequest url: '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',
|
||||
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-muslc.tar.xz', uploadFile: 'linux-x64-muslc.tar.xz']]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user