E
def gitea_send_message(message) {
withCredentials([string(credentialsId: 'access_token_jenkins_gitea', variable: 'access_token')]) {
def response = httpRequest \
acceptType: 'APPLICATION_JSON',
contentType: 'APPLICATION_JSON',
httpMode: 'POST',
requestBody: '{"body": "' + message + '"}',
customHeaders: [[name: 'Authorization', value: "token ${access_token}", maskValue: true]],
url: "https://${gitea_domain}/api/v1/repos/${repository_full_name}/issues/${issue_number}/comments"
return response
}
return false
}
При выполнении билда получаю предупреждение:The following steps that have been detected may have insecure interpolation of sensitive variables (click here for an explanation):
httpRequest: [access_token]
Как это исправить?