Skip to content

Commit cd7424d

Browse files
committed
fixed for build name env
1 parent 5cd6d8b commit cd7424d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/browserstack/automate/ci/jenkins/pipeline/BrowserStackPipelineStepExecution.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,16 @@ public boolean start() throws Exception {
8787
new BrowserStackBuildWrapperOperations(credentials, false, taskListener.getLogger(),
8888
localConfig, browserStackLocal);
8989

90+
EnvVars overrides = run.getEnvironment(taskListener);
9091
HashMap<String, String> overridesMap = new HashMap<String, String>();
92+
overridesMap.put(Constants.JENKINS_BUILD_TAG, overrides.get(Constants.JENKINS_BUILD_TAG));
9193
buildWrapperOperations.buildEnvVars(overridesMap);
9294

9395
body = getContext()
9496
.newBodyInvoker().withContext(credentials).withContext(EnvironmentExpander
9597
.merge(getContext().get(EnvironmentExpander.class), new ExpanderImpl(overridesMap)))
9698
.withCallback(new Callback(browserStackLocal)).start();
9799

98-
EnvVars overrides = run.getEnvironment(taskListener);
99100
tracker.pluginInitialized(overrides.get(Constants.JENKINS_BUILD_TAG),
100101
(this.localConfig != null), true);
101102
return false;

0 commit comments

Comments
 (0)