Browse Source
add build-url in build mails fix build artifacts fix log file path comment out BUILD_URL fix syntax error refactor notifications Reviewed-on: #34 Co-Authored-By: artoo <artoo@artixlinux.org> Co-Committed-By: artoo <artoo@artixlinux.org>master
9 changed files with 75 additions and 92 deletions
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env groovy |
||||
|
||||
def call(def pkg) { |
||||
String msg = 'Failure' |
||||
|
||||
pkg.sendBuildMail(msg, pkg.config.notify.fails, BUILD_URL) |
||||
|
||||
archiveArtifacts( |
||||
allowEmptyArchive: true, |
||||
artifacts: "${pkg.config.arch}**/*.log" |
||||
) |
||||
} |
@ -1,25 +0,0 @@
|
||||
#!/usr/bin/env groovy |
||||
|
||||
def call(def pkg) { |
||||
String msg = 'Failure' |
||||
|
||||
String subject = "[${pkg.config.src.repoAddName}] ${msg}: ${pkg.info.pkgbase.name}" |
||||
|
||||
String body = """ |
||||
<p><strong>${msg}</strong></p> |
||||
<p>Build: ${pkg.config.src.repoPath}</p> |
||||
<p>Packages:</p> |
||||
<p>${pkg.info.files.join('\n')}</p> |
||||
<p>author: ${pkg.config.author.name}</p> |
||||
<p>email: ${pkg.config.author.email}</p> |
||||
<p><a href=${BUILD_URL}>${BUILD_URL}</a></p> |
||||
""" |
||||
|
||||
emailext ( |
||||
mimeType: 'text/html', |
||||
body: body, |
||||
subject: subject, |
||||
to: pkg.config.notify.fails, |
||||
attachLog: true |
||||
) |
||||
} |
@ -1,25 +0,0 @@
|
||||
#!/usr/bin/env groovy |
||||
|
||||
def call(def pkg) { |
||||
String msg = 'Fixed' |
||||
|
||||
String subject = "[${pkg.config.src.repoAddName}] ${msg}: ${pkg.info.pkgbase.name}" |
||||
|
||||
String body = """ |
||||
<p><strong>${msg}</strong></p> |
||||
<p>Build: ${pkg.config.src.repoPath}</p> |
||||
<p>Packages:</p> |
||||
<p>${pkg.info.files.join('\n')}</p> |
||||
<p>author: ${pkg.config.author.name}</p> |
||||
<p>email: ${pkg.config.author.email}</p> |
||||
<p><a href=${BUILD_URL}>${BUILD_URL}</a></p> |
||||
""" |
||||
|
||||
emailext ( |
||||
mimeType: 'text/html', |
||||
body: body, |
||||
subject: subject, |
||||
to: pkg.config.notify.fixes, |
||||
attachLog: false |
||||
) |
||||
} |
Loading…
Reference in new issue