Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release versioning + incremental builds #43

Merged

Conversation

justusbunsi
Copy link
Member

@justusbunsi justusbunsi commented Nov 20, 2021

The last Pull Request broke the incremental builds whilst trying to fix the release tagging/deploy syntax.

The used workflow to deploy the artifact and create a tag + release on GitHub does not support a clean version such as 1.4.0 instead of 1.4.0-rc..... This is due to the hardcoded -Dset.changelist flag which does not allow skipping the suffix.

As the Gitea plugin should have clean release names, I switched to my fork where this feature is implemented. We can use it as long as the upstream PR for that workflow is not merged.

In addition to that, I've came to the conclusion that it wouldn't be wise to skip all the interim versions between 1.4.0 and 1.5.0. Why should we do this. So back to 1.4.1. 😄

We now have a fully automated release on button click (workflow_dispatch). After releasing the current version, the workflow also bumps the incremental/patch version to the next higher version. If there is a need to increase the minor version, we'd need to do it manually.

The only thing I couldn't get working is the gitea- prefix for tags and the v prefix on release subjects. But I think the current way is totally fine.

@justusbunsi justusbunsi changed the title Fix incremental build uploads Fix release + incremental builds Nov 21, 2021
@justusbunsi
Copy link
Member Author

@lafriks The new behavior can be seen at my fork of this plugin: Workflow in action | Releases.

@justusbunsi justusbunsi marked this pull request as ready for review November 21, 2021 18:34
@justusbunsi justusbunsi changed the title Fix release + incremental builds Fix release versioning + incremental builds Nov 21, 2021
@lafriks
Copy link
Contributor

lafriks commented Nov 21, 2021

Nice work!

@lafriks lafriks merged commit e35ae78 into jenkinsci:master Nov 21, 2021
@justusbunsi justusbunsi deleted the maintenance/fix-incremental-build-uploads branch November 21, 2021 18:53
viceice added a commit to visualon/jenkins-gitea-plugin that referenced this pull request Nov 24, 2021
* Enable cd workflow (#35)

* Enable cd workflow

Signed-off-by: Steven Kriegler <[email protected]>

* Add missing GitHub workflow

Signed-off-by: Steven Kriegler <[email protected]>

* Update .github/workflows/cd.yaml

Co-authored-by: Lauris BH <[email protected]>

* Switch back to classic version syntax

Co-authored-by: Lauris BH <[email protected]>

* Bump version to 1.5.0 (jenkinsci#42)

Additionally: Fix tag/release template to match previous releases

* Fix release versioning + incremental builds (jenkinsci#43)

* 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

* Fix JENKINS-67068 (jenkinsci#44)

As a result of PR #29 it happens that some users cannot fetch branches
with slashes in their names anymore.

Regression from: JENKINS-65796

Co-authored-by: Steven <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants