Skip to content

Commit

Permalink
Fix release versioning + incremental builds (#43)
Browse files Browse the repository at this point in the history
* Add alt-texts to badges

This is a commit for letting the status checks fail.

* Lower the release version

* Re-Add changelist to version

* Opt-out incremental suffix during release

See: jenkins-infra/jenkins-maven-cd-action#13

* Auto-incrementalify after release
  • Loading branch information
justusbunsi authored Nov 21, 2021
1 parent 7f410b4 commit e35ae78
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,20 @@ jobs:
distribution: 'adopt'
java-version: 8
- name: Release
uses: jenkins-infra/[email protected].0
uses: justusbunsi/[email protected].1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
NO_CHANGELIST: '1'
- name: Setup Git user
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Lock auto-incremented version
run: |
mvn -B -ntp -DgenerateBackupPoms=false -Drevision=$(mvn -B -ntp -Dchangelist= -Dexpression=project.version -q -DforceStdout help:evaluate) release:update-versions
mvn -B -ntp -Dignore.dirt incrementals:reincrementalify
git add pom.xml
git commit -m "[github-action] prepare for next development iteration"
git push
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Gitea Plugin

[![](https://img.shields.io/jenkins/plugin/v/gitea.svg?label=version)](https://plugins.jenkins.io/gitea)
[![](https://img.shields.io/github/v/release/jenkinsci/gitea-plugin.svg?label=changelog)](https://github.com/jenkinsci/gitea-plugin/releases/latest)
[![](https://img.shields.io/jenkins/plugin/i/gitea.svg?color=blue)](https://plugins.jenkins.io/gitea)
[![Version](https://img.shields.io/jenkins/plugin/v/gitea.svg?label=version)](https://plugins.jenkins.io/gitea)
[![Changelog](https://img.shields.io/github/v/release/jenkinsci/gitea-plugin.svg?label=changelog)](https://github.com/jenkinsci/gitea-plugin/releases/latest)
[![Installs](https://img.shields.io/jenkins/plugin/i/gitea.svg?color=blue)](https://plugins.jenkins.io/gitea)

This plugin provides the Jenkins integrations for [Gitea](https://gitea.io).

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>

<artifactId>gitea</artifactId>
<version>${revision}</version>
<version>${revision}${changelist}</version>
<packaging>hpi</packaging>

<name>Gitea Plugin</name>
Expand All @@ -31,8 +31,8 @@
</scm>

<properties>
<revision>1.5.0</revision>
<changelist>999999-SNAPSHOT</changelist>
<revision>1.4.1</revision>
<changelist>-SNAPSHOT</changelist>
<java.level>8</java.level>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<argLine>-Dfile.encoding=${project.build.sourceEncoding}</argLine>
Expand Down

0 comments on commit e35ae78

Please sign in to comment.