Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-63254][JENKINS-47101] Watch sensitive variables #105

Merged
merged 14 commits into from
Oct 14, 2020
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
<properties>
<revision>1.24</revision>
<changelist>-SNAPSHOT</changelist>
<jenkins.version>2.164.3</jenkins.version>
<jenkins.version>2.176.4</jenkins.version>
jglick marked this conversation as resolved.
Show resolved Hide resolved
<java.level>8</java.level>
<workflow-step-api.version>2.23-rc567.0fe52fbdf6b5</workflow-step-api.version>
jglick marked this conversation as resolved.
Show resolved Hide resolved
</properties>
<licenses>
<license>
Expand Down Expand Up @@ -73,6 +74,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-step-api</artifactId>
<version>${workflow-step-api.version}</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand Down Expand Up @@ -111,6 +113,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-step-api</artifactId>
<version>${workflow-step-api.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ private static final class Overrider extends EnvironmentExpander {
}
}

@Override public Set<String> getSensitiveVariables() {
return Collections.unmodifiableSet(overrides.keySet());
}
}

/** Similar to {@code MaskPasswordsOutputStream}. */
Expand Down