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

Back to dev version #4

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Back to dev version #4

merged 1 commit into from
Mar 28, 2024

Conversation

jglick
Copy link
Member

@jglick jglick commented Mar 20, 2024

ed1f487 was not paired with the expected “back to development version” commit, indicating a botched release.

If you do not want to publish releases manually and deal with local authentication issues and so on, you can also consider automated releases.

@jglick jglick requested a review from a team as a code owner March 20, 2024 17:40
@sbobin
Copy link

sbobin commented Mar 25, 2024

Hi Jesse! Thanks for the fix you propose. Can you clarify? Is it related to my recent question on jenkins-dev about "Cannot publish new plugin release"?

@jglick
Copy link
Member Author

jglick commented Mar 25, 2024

Possibly. maven-release-plugin is fragile in the sense that a failure partway through a release will leave your repository in an invalid state that needs to be manually cleaned up.

@sbobin
Copy link

sbobin commented Mar 28, 2024

I will try that then. Thanks!

@sbobin sbobin merged commit 897f53a into jenkinsci:master Mar 28, 2024
15 checks passed
@sbobin
Copy link

sbobin commented Mar 28, 2024

Hi Jesse!

Unfortunately, it does not seem to fix my build. I have merged your pull request. When I run mvn -e -X release:prepare release:perform, it will create a new tag but not a new release.

Now I have got 3 new tags since the last few weeks my build is broken and I made new attempts, but the build still ends up failing and I have no corresponding release published on the Jenkins page for my plugin: https://plugins.jenkins.io/mathworks-polyspace/releases/.

Can you or somebody from the Jenkins team please help me fix my plugin build?

Note: my Jenkins repo is marked "This branch is 4 commits ahead of, 3 commits behind mathworks/mathworks-polyspace-plugin:master.". I don't know if there is any relation. How to reconcile that?

Thanks!

@jglick jglick deleted the patch-1 branch March 28, 2024 11:57
@jglick
Copy link
Member Author

jglick commented Mar 28, 2024

Can you or somebody from the Jenkins team please help me fix my plugin build?

You can file a helpdesk ticket. Personally I do not plan to help anyone use maven-release-plugin since it is notoriously error-prone, one of the reasons we set up the automated release system.

@sbobin
Copy link

sbobin commented Mar 28, 2024

Thanks for your quick reply! With the page on automated release system you mention, is there anything else I need to do to fix my repo and get it on a clean state (and file a helpdesk request)? Or can I ignore the current failing build/release and it goes through a completely different workflow? Thanks.

@jglick
Copy link
Member Author

jglick commented Mar 28, 2024

is there anything else I need to do to fix my repo and get it on a clean state

You mean to prepare it for CD? You should start with it incrementalified, which it seems is only partially the case currently since version is hard-coded rather than using revision (compare the against the plugin archetype).

@sbobin
Copy link

sbobin commented Mar 28, 2024

Ok. Will try that. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants