Skip to content

Commit 6520def

Browse files
committed
more logs valuable for debugging
1 parent c4bfb27 commit 6520def

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/trigger-jenkins-build.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ function triggerBuild (options, cb) {
5353
return cb(new TypeError(`Will not trigger Jenkins build because $JENKINS_BUILD_TOKEN_${repo.toUpperCase()} is not set`))
5454
}
5555

56+
options.logger.debug('Triggering Jenkins build')
57+
5658
request.post({
5759
uri,
5860
headers: { authorization },
@@ -102,6 +104,7 @@ module.exports = (app) => {
102104
}
103105

104106
createPrComment(options, `@${commentAuthor} build started: ${buildUrl}`)
107+
logger.info({ buildUrl }, 'Jenkins build started')
105108
}
106109

107110
function triggerBuildWhenCollaborator (err) {

0 commit comments

Comments
 (0)