forked from jenkinsci/p4-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #16 from jenkinsci/master
Fork Sync: Update from parent repository
- Loading branch information
Showing
4 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/main/java/org/jenkinsci/plugins/p4/publish/P4PublishEnvironmentContributingAction.java
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,34 @@ | ||
package org.jenkinsci.plugins.p4.publish; | ||
|
||
import edu.umd.cs.findbugs.annotations.NonNull; | ||
import hudson.EnvVars; | ||
import hudson.model.EnvironmentContributingAction; | ||
import hudson.model.Run; | ||
|
||
public class P4PublishEnvironmentContributingAction implements EnvironmentContributingAction { | ||
private final String publishedChangeId; | ||
|
||
public P4PublishEnvironmentContributingAction(String publishedChangeID) { | ||
this.publishedChangeId = publishedChangeID; | ||
} | ||
|
||
@Override | ||
public void buildEnvironment(@NonNull Run<?, ?> run, @NonNull EnvVars env) { | ||
env.put("P4_PUBLISH_CHANGELIST", publishedChangeId); | ||
} | ||
|
||
@Override | ||
public String getIconFileName() { | ||
return ""; | ||
} | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return ""; | ||
} | ||
|
||
@Override | ||
public String getUrlName() { | ||
return ""; | ||
} | ||
} |
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
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
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