build(ci): fix syntax
This commit is contained in:
@@ -36,8 +36,8 @@ pipeline {
|
|||||||
url: env.GITEA_API_URL,
|
url: env.GITEA_API_URL,
|
||||||
httpMode: 'POST',
|
httpMode: 'POST',
|
||||||
acceptType: 'application/json',
|
acceptType: 'application/json',
|
||||||
contentType: 'application/json'
|
contentType: 'application/json',
|
||||||
customHeaders: [[name: 'Authorization', value: "token ${env.GITEA_TOKEN}"]]
|
customHeaders: [[name: 'Authorization', value: "token ${env.GITEA_TOKEN}"]],
|
||||||
requestBody: releaseData)
|
requestBody: releaseData)
|
||||||
|
|
||||||
def responseCode = responseApi.status
|
def responseCode = responseApi.status
|
||||||
@@ -77,8 +77,8 @@ pipeline {
|
|||||||
url: "${env.GITEA_API_URL}/${env.RELEASE_ID}/assets?name=${fileName}",
|
url: "${env.GITEA_API_URL}/${env.RELEASE_ID}/assets?name=${fileName}",
|
||||||
httpMode: 'POST',
|
httpMode: 'POST',
|
||||||
acceptType: 'application/json',
|
acceptType: 'application/json',
|
||||||
contentType: 'application/octet-stream'
|
contentType: 'application/octet-stream',
|
||||||
customHeaders: [[name: 'Authorization', value: "token ${env.GITEA_TOKEN}"]]
|
customHeaders: [[name: 'Authorization', value: "token ${env.GITEA_TOKEN}"]],
|
||||||
uploadFile: "build/libs/${fileName}")
|
uploadFile: "build/libs/${fileName}")
|
||||||
|
|
||||||
def responseCode = responseApi.status
|
def responseCode = responseApi.status
|
||||||
|
|||||||
Reference in New Issue
Block a user