forked from mchugh19/jenkins-saltapi
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from jenkinsci/fix-indent
correct for consistent indentation
- Loading branch information
Showing
3 changed files
with
228 additions
and
217 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,36 @@ | ||
package com.waytta; | ||
|
||
import hudson.model.InvisibleAction; | ||
import hudson.model.EnvironmentContributingAction; | ||
import hudson.model.AbstractBuild; | ||
import hudson.EnvVars; | ||
import hudson.model.AbstractBuild; | ||
import hudson.model.EnvironmentContributingAction; | ||
import hudson.model.InvisibleAction; | ||
|
||
public class PublishEnvVarAction extends InvisibleAction implements EnvironmentContributingAction { | ||
private String key; | ||
private String value; | ||
|
||
/** | ||
* Constructor. | ||
* @param key the environment variable key | ||
* @param value the environment variable value | ||
* | ||
* @param key | ||
* the environment variable key | ||
* @param value | ||
* the environment variable value | ||
*/ | ||
public PublishEnvVarAction(String key, String value) { | ||
this.key = key; | ||
this.value = value; | ||
this.key = key; | ||
this.value = value; | ||
} | ||
|
||
/* (non-Javadoc) | ||
* @see hudson.model.EnvironmentContributingAction#buildEnvVars(hudson.model.AbstractBuild, hudson.EnvVars) | ||
/* | ||
* (non-Javadoc) | ||
* | ||
* @see | ||
* hudson.model.EnvironmentContributingAction#buildEnvVars(hudson.model. | ||
* AbstractBuild, hudson.EnvVars) | ||
*/ | ||
@Override | ||
public void buildEnvVars(AbstractBuild<?, ?> build, EnvVars env) { | ||
env.put(key, value); | ||
env.put(key, value); | ||
} | ||
} | ||
|
Oops, something went wrong.
5d270de
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!! Thanks @mchugh19 !!!!