Skip to content

Commit 5773940

Browse files
authored
Merge pull request #74 from jglick/incrementals
Incrementalified
2 parents 6236d9c + 4d9cc6a commit 5773940

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

.mvn/extensions.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
2+
<extension>
3+
<groupId>io.jenkins.tools.incrementals</groupId>
4+
<artifactId>git-changelist-maven-extension</artifactId>
5+
<version>1.0-beta-3</version>
6+
</extension>
7+
</extensions>

.mvn/maven.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-Pconsume-incrementals
2+
-Pmight-produce-incrementals

pom.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
<parent>
2929
<groupId>org.jenkins-ci.plugins</groupId>
3030
<artifactId>plugin</artifactId>
31-
<version>3.2</version>
31+
<version>3.14</version>
3232
<relativePath />
3333
</parent>
3434
<groupId>org.jenkins-ci.plugins.workflow</groupId>
3535
<artifactId>workflow-api</artifactId>
36-
<version>2.28-SNAPSHOT</version>
36+
<version>${revision}${changelist}</version>
3737
<packaging>hpi</packaging>
3838
<name>Pipeline: API</name>
3939
<url>https://wiki.jenkins.io/display/JENKINS/Pipeline+API+Plugin</url>
@@ -47,7 +47,7 @@
4747
<connection>scm:git:git://github.com/jenkinsci/${project.artifactId}-plugin.git</connection>
4848
<developerConnection>scm:git:[email protected]:jenkinsci/${project.artifactId}-plugin.git</developerConnection>
4949
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
50-
<tag>HEAD</tag>
50+
<tag>${scmTag}</tag>
5151
</scm>
5252
<repositories>
5353
<repository>
@@ -62,6 +62,8 @@
6262
</pluginRepository>
6363
</pluginRepositories>
6464
<properties>
65+
<revision>2.28</revision>
66+
<changelist>-SNAPSHOT</changelist>
6567
<jenkins.version>2.60.3</jenkins.version>
6668
<java.level>8</java.level>
6769
<no-test-jar>false</no-test-jar>

src/main/java/org/jenkinsci/plugins/workflow/flow/FlowCopier.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import java.io.IOException;
3636
import jenkins.scm.api.SCMRevisionAction;
3737
import org.kohsuke.accmod.Restricted;
38-
import org.kohsuke.accmod.restrictions.DoNotUse;
38+
import org.kohsuke.accmod.restrictions.NoExternalUse;
3939

4040
/**
4141
* A way for plugins to copy metadata and associated files from one flow execution to another.
@@ -71,7 +71,7 @@ public static abstract class ByRun extends FlowCopier {
7171

7272
}
7373

74-
@Restricted(DoNotUse.class) // impl
74+
@Restricted(NoExternalUse.class) // impl
7575
@Extension public static class StandardActions extends FlowCopier.ByRun {
7676

7777
// TODO cloned from ReplayAction; consider whether it is appropriate to share these (related but not identical case)

src/main/java/org/jenkinsci/plugins/workflow/flow/StashManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
import org.apache.tools.tar.TarEntry;
5959
import org.kohsuke.accmod.Restricted;
6060
import org.kohsuke.accmod.restrictions.DoNotUse;
61+
import org.kohsuke.accmod.restrictions.NoExternalUse;
6162

6263
/**
6364
* Manages per-build stashes of files.
@@ -228,7 +229,7 @@ public boolean shouldClearAll(@Nonnull Run<?,?> build) {
228229

229230
}
230231

231-
@Restricted(DoNotUse.class)
232+
@Restricted(NoExternalUse.class)
232233
@Extension public static class CopyStashesAndArtifacts extends FlowCopier.ByRun {
233234

234235
@Override public void copy(Run<?,?> original, Run<?,?> copy, TaskListener listener) throws IOException, InterruptedException {

0 commit comments

Comments
 (0)