fix(jenkins): update default GITEA_USER and improve variable naming in notification logic
This commit is contained in:
4
ci/Jenkinsfile
vendored
4
ci/Jenkinsfile
vendored
@@ -48,7 +48,7 @@ pipeline {
|
|||||||
parameters {
|
parameters {
|
||||||
string(
|
string(
|
||||||
name: 'GITEA_USER',
|
name: 'GITEA_USER',
|
||||||
defaultValue: 'martemme',
|
defaultValue: 'martin',
|
||||||
description: 'Username Gitea del repository HomeAssistantAddOns'
|
description: 'Username Gitea del repository HomeAssistantAddOns'
|
||||||
)
|
)
|
||||||
string(
|
string(
|
||||||
@@ -526,7 +526,7 @@ else:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Notifica ntfy
|
// Notifica ntfy
|
||||||
def anyFailed = buildMap.any { _, v -> v.status == 'FAILED' }
|
def anyFailed = buildMap.any { k, v -> v.status == 'FAILED' }
|
||||||
def summary = addons.isEmpty()
|
def summary = addons.isEmpty()
|
||||||
? "Build #${env.BUILD_NUMBER}: nessun addon da buildare"
|
? "Build #${env.BUILD_NUMBER}: nessun addon da buildare"
|
||||||
: anyFailed
|
: anyFailed
|
||||||
|
|||||||
Reference in New Issue
Block a user