Skip to content

Commit

Permalink
[JENKINS-67045] Update promoted-builds dependency and get rid of the …
Browse files Browse the repository at this point in the history
…deprecated call
  • Loading branch information
Vlatombe committed Nov 3, 2021
1 parent 5857ff3 commit f177d2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>promoted-builds</artifactId>
<version>2.17</version>
<version>3.4</version>
<optional>true</optional>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public DeployPromotionBuilder(List<DeployHost<?, ?>> hosts) {
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener)
throws InterruptedException, IOException {
if (build instanceof Promotion) {
build = ((Promotion) build).getTarget();
build = ((Promotion) build).getTargetBuild();
}
try {
for (DeployHost<? extends DeployHost<?, ?>, ? extends DeployTarget<?>> set : getHosts()) {
Expand Down

0 comments on commit f177d2e

Please sign in to comment.