Skip to content

Commit

Permalink
Merge pull request #105 from car-roll/binding-callback
Browse files Browse the repository at this point in the history
[JENKINS-63254][JENKINS-47101] Watch sensitive variables
  • Loading branch information
jglick authored Oct 14, 2020
2 parents c85404d + 981a324 commit 4dc1f3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 6 additions & 3 deletions 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>
<java.level>8</java.level>
<workflow-step-api.version>2.23</workflow-step-api.version> <!-- TODO: Delete when in BOM -->
</properties>
<licenses>
<license>
Expand Down Expand Up @@ -54,8 +55,8 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.164.x</artifactId>
<version>10</version>
<artifactId>bom-2.176.x</artifactId>
<version>13</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand All @@ -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

0 comments on commit 4dc1f3b

Please sign in to comment.