Skip to content

Commit

Permalink
Merge pull request #18 from jglick/release-from-master
Browse files Browse the repository at this point in the history
Allow this plugin to be published without MRP
  • Loading branch information
jglick committed Oct 12, 2019
2 parents c2004bf + 6833623 commit a810504
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_extends: .github
tag-template: XXX
7 changes: 7 additions & 0 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<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">
<extension>
<groupId>io.jenkins.tools.incrementals</groupId>
<artifactId>git-changelist-maven-extension</artifactId>
<version>1.1</version>
</extension>
</extensions>
3 changes: 3 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-Pconsume-incrementals
-Pmight-produce-incrementals
-Dchangelist.format=%d.%s
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
[Wiki](https://wiki.jenkins.io/display/JENKINS/Log+CLI+Plugin)

# Releasing

As per [instructions](https://github.com/jenkinsci/incrementals-tools/#superseding-maven-releases):

```bash
mvn -Dset.changelist -DaltDeploymentRepository=maven.jenkins-ci.org::default::https://repo.jenkins-ci.org/releases/ clean deploy
```

then update [Releases](https://github.com/jenkinsci/log-cli-plugin/releases).
25 changes: 23 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
<relativePath />
</parent>
<artifactId>log-cli</artifactId>
<version>1.2-SNAPSHOT</version>
<version>${changelist}</version>
<packaging>hpi</packaging>
<properties>
<changelist>999999-SNAPSHOT</changelist>
<jenkins.version>2.7.3</jenkins.version>
<java.level>7</java.level>
</properties>
Expand All @@ -27,7 +28,7 @@
<connection>scm:git:git://github.com/jenkinsci/${project.artifactId}-plugin.git</connection>
<developerConnection>scm:git:git@github.com:jenkinsci/${project.artifactId}-plugin.git</developerConnection>
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
<tag>HEAD</tag>
<tag>${scmTag}</tag>
</scm>
<repositories>
<repository>
Expand All @@ -48,4 +49,24 @@
<version>1.0</version>
</dependency>
</dependencies>
<profiles>
<profile> <!-- TODO perhaps move to plugin-pom -->
<id>block-MRP</id>
<activation>
<property>
<name>changelist.format</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<preparationGoals>not-set-up-for-MRP</preparationGoals>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit a810504

Please sign in to comment.