Skip to content

Commit

Permalink
changed error message regarding environment variable injection failure
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewchivers committed Sep 11, 2024
1 parent 97ace92 commit f566519
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public void buildEnvironmentFor(Job job, EnvVars env, TaskListener listener) thr
int expectedEnvSize = env.size() + result.size();
env.putAll(result);
if (env.size() != expectedEnvSize) {
listener.error("Not all environment variables could be successfully injected. " +
"Check for similarly-named environment variables.");
listener.error("Some environment variables were not successfully injected. " +

Check warning on line 30 in src/main/java/org/jenkinsci/plugins/envinject/EnvInjectEnvVarsContributor.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 30 is not covered by tests
"This may be due to conflicts with existing environment variables that have the same name.");
}
}
}
Expand Down

0 comments on commit f566519

Please sign in to comment.