Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/trigger-jenkins-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function buildParametersForRepo (options, repo) {

function triggerBuild (options, cb) {
const { repo } = options
const base64Credentials = new Buffer(jenkinsApiCredentials).toString('base64')
const base64Credentials = Buffer.from(jenkinsApiCredentials, 'base64')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't toString() still need to be called?

This diff should make things ok, I believe:

Suggested change
const base64Credentials = Buffer.from(jenkinsApiCredentials, 'base64')
const base64Credentials = Buffer.from(jenkinsApiCredentials).toString('base64')

const authorization = `Basic ${base64Credentials}`

const jobName = getJobNameForRepo(repo)
Expand Down