From e3dbe074c2382fdf5e1ed7c07cf1f7d1dcafe320 Mon Sep 17 00:00:00 2001 From: Gary Cheung Date: Wed, 30 Oct 2024 06:52:27 -0700 Subject: [PATCH] revert export and isPR --- Jenkinsfile | 5 +++-- gulp.d/tasks/release.js | 5 +---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f3c7162d..c39bf5cf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' + } } diff --git a/gulp.d/tasks/release.js b/gulp.d/tasks/release.js index cf84fe98..532d6f47 100644 --- a/gulp.d/tasks/release.js +++ b/gulp.d/tasks/release.js @@ -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'