Skip to content

Commit

Permalink
validate server id
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 committed Aug 23, 2024
1 parent 24b6611 commit f54f364
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/jfrog/bamboo/JfTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,12 @@ public String put(String key, String value) {
}
};

// getEffectiveVariables - This method returns the set of variables that are effective for the current build,
// taking into account any overrides or changes made during the build process.
for (VariableDefinitionContext varContext : buildContext.getVariableContext().getEffectiveVariables().values()) {
jfEnvs.put(varContext.getKey(), varContext.getValue());
}

jfEnvs.put("JFROG_CLI_SERVER_ID", serverConfig.getServerId());
jfEnvs.put("JFROG_CLI_BUILD_NAME", buildContext.getPlanName());
jfEnvs.put("JFROG_CLI_BUILD_NUMBER", String.valueOf(buildContext.getBuildNumber()));
Expand Down

0 comments on commit f54f364

Please sign in to comment.