Skip to content

Commit

Permalink
revert export and isPR
Browse files Browse the repository at this point in the history
  • Loading branch information
cheungaryk committed Oct 30, 2024
1 parent bccb4b5 commit e3dbe07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ void release() {
withCredentials([
string(credentialsId: 'GH_TOKEN', variable: 'GH_TOKEN'),
string(credentialsId: 'ms-cx-engineering-gpg-private-key' , variable: 'SECRET_KEY')]) {
sh 'GIT_BRANCH=env.GIT_BRANCH npm run release'
}
sh 'export GIT_BRANCH=env.GIT_BRANCH'
sh 'npm run release'
}
}
5 changes: 1 addition & 4 deletions gulp.d/tasks/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,7 @@ const getRef = async (githubConfig, tagName) => {
}

const headsify = (branchName) => `heads/${branchName}`
const isPR = (branchName) => {
console.log(branchName)
branchName.toLowerCase().startsWith('pr-')
}
const isPR = (branchName) => branchName.toLowerCase().startsWith('pr-')

const normalizeOffset = async (offset, offsetIsZero = true) => {
if (offsetIsZero) return '+0000'
Expand Down

0 comments on commit e3dbe07

Please sign in to comment.