Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Introduce a stub for the remotingCLI symbol
Browse files Browse the repository at this point in the history
This stub accodomates the removal of the Remoting CLI in
jenkinsci/jenkins#3838

The change does two things:
* reintroduce the symbol by providing an no-op object for it
* have some code to rewrite the JCasC yaml files without this option
  • Loading branch information
batmat committed Apr 26, 2019
1 parent 7cb4829 commit 2bf2336
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -15,7 +15,7 @@
<revision>1.0</revision>
<changelist>-SNAPSHOT</changelist>
<!-- Using always very recent on purpose -->
<jenkins.version>2.161</jenkins.version>
<jenkins.version>2.165</jenkins.version>
<java.level>8</java.level>
</properties>
<name>Evergreen Plugin</name>
Expand Down
Expand Up @@ -5,7 +5,12 @@
import hudson.Extension;
import hudson.init.InitMilestone;
import hudson.init.Initializer;
import hudson.model.PersistentDescriptor;
import jenkins.model.GlobalConfiguration;
import org.apache.commons.codec.digest.DigestUtils;
import org.jenkinsci.Symbol;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;

import java.io.IOException;
import java.nio.file.Files;
Expand Down Expand Up @@ -55,4 +60,8 @@ static void fixFileIfNeeded(Path createAdminUserFilePath) throws IOException {
}
}

@Extension @Symbol("remotingCLI")
@Restricted(NoExternalUse.class)
public static class RemotingCLIEvergreenStub extends GlobalConfiguration implements PersistentDescriptor {
}
}

0 comments on commit 2bf2336

Please sign in to comment.