Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The proposed fix buckett@eec16f1 has a problem in that it'd allow anything that has the given URL name as a prefix. (cherry picked from commit 4e7a43c) Conflicts: core/src/main/resources/hudson/model/EnvironmentContributor/EnvVarsHtml/index.groovy
- Loading branch information
Showing
3 changed files
with
100 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
core/src/main/resources/hudson/model/EnvironmentContributor/EnvVarsHtml/index.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package hudson.model.EnvironmentContributor.EnvVarsHtml; | ||
import hudson.model.EnvironmentContributor | ||
import hudson.scm.SCM | ||
|
||
def st = namespace("jelly:stapler") | ||
|
||
html { | ||
head { | ||
title(_("Available Environmental Variables")) | ||
style(type:"text/css", "dt { font-weight: bold; }") | ||
} | ||
body { | ||
p "The following variables are available to shell scripts" | ||
|
||
dl { | ||
EnvironmentContributor.all().each { e -> st.include(it:e, page:"buildEnv", optional:true) } | ||
|
||
// allow SCM classes to have buildEnv.groovy since SCM can contirbute environment variables | ||
SCM.all().each { e -> st.include(class:e.clazz, page:"buildEnv", optional:true) } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters