Skip to content

Commit

Permalink
Merge pull request #23 from jenkinsci/fix-indent
Browse files Browse the repository at this point in the history
correct for consistent indentation
  • Loading branch information
mchugh19 committed Apr 17, 2016
2 parents f6d42b6 + 6ff571c commit 5d270de
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 217 deletions.
29 changes: 18 additions & 11 deletions src/main/java/com/waytta/PublishEnvVarAction.java
@@ -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);
}
}

1 comment on commit 5d270de

@kinow
Copy link
Member

@kinow kinow commented on 5d270de Apr 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!! Thanks @mchugh19 !!!!

Please sign in to comment.