Setting up automated plugin release

162 views
Skip to first unread message

Marit M

unread,
Dec 21, 2021, 9:53:51 AM12/21/21
to Jenkins Developers

Hi,

 

I have followed the steps described in https://www.jenkins.io/doc/developer/publishing/releasing-cd/.

But I can’t seem to pass the validate job on the cd.yml

https://github.com/jenkinsci/bmc-cfa-plugin/runs/4594497623?check_suite_focus=true

 

It seems like “Check interesting categories” fails.

 

Any idea?

 

Thanks,

Marit.

Marit M

unread,
Dec 22, 2021, 4:50:43 AM12/22/21
to Jenkins Developers
I managed to fix that by applying a label to the PR.


ב-יום שלישי, 21 בדצמבר 2021 בשעה 16:53:51 UTC+2, ‪Marit M‬‏ כתב/ה:

Tim Jacomb

unread,
Dec 22, 2021, 5:30:32 AM12/22/21
to Jenkins Developers
this should fix your current issue: https://github.com/jenkinsci/bmc-cfa-plugin/pull/11

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/40b6db23-bf09-454f-a192-7e0225fb028an%40googlegroups.com.

Marit M

unread,
Dec 22, 2021, 6:10:04 AM12/22/21
to Jenkins Developers
 Now I get an error on the release job regarding incrementals :

[WARNING] The requested profile "consume-incrementals" could not be activated because it does not exist.
201++ mvn -B -ntp -Dset.changelist -Dexpression=project.version -q -DforceStdout help:evaluate
202Error: on='[ERROR] Make sure `git status -s` is empty before using -Dset.changelist



ב-יום רביעי, 22 בדצמבר 2021 בשעה 12:30:32 UTC+2, timja...@gmail.com כתב/ה:

Jesse Glick

unread,
Dec 22, 2021, 9:24:00 AM12/22/21
to jenkin...@googlegroups.com
On Wed, Dec 22, 2021 at 6:10 AM Marit M <mar...@gmail.com> wrote:
202Error: on='[ERROR] Make sure `git status -s` is empty before using -Dset.changelist

Marit M

unread,
Dec 23, 2021, 4:04:41 AM12/23/21
to Jenkins Developers
Now I'm getting wrong-check on validate job, what does that mean?

It seems to fail here:

if [ "$(jq -r .check_run.name < $GITHUB_EVENT_PATH)" \!= "$NAME" ]


then


outputResult wrong-check 1


ב-יום רביעי, 22 בדצמבר 2021 בשעה 16:24:00 UTC+2, ‪Jesse Glick‬‏ כתב/ה:

Tim Jacomb

unread,
Dec 23, 2021, 4:12:04 AM12/23/21
to Jenkins Developers
There's quite a few checks that are run as part of warnings-ng and junit.
Only the main check 'Jenkins' matters for release.

Which wasn't finished when you sent this email, https://github.com/jenkinsci/bmc-cfa-plugin/runs/4616176655?check_suite_focus=true passed


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.

Marit M

unread,
Dec 23, 2021, 5:14:57 AM12/23/21
to Jenkins Developers
Yeah, I saw it was finally released :-)!
Thanks for the assistance!

 I still need to figure out the how to format the numbers, and can I delete a release, will it be deleted from https://plugins.jenkins.io/ as well?

ב-יום חמישי, 23 בדצמבר 2021 בשעה 11:12:04 UTC+2, timja...@gmail.com כתב/ה:

Jesse Glick

unread,
Dec 23, 2021, 9:32:23 AM12/23/21
to Jenkins Dev
https://github.com/jenkinsci/bmc-cfa-plugin/pull/15 ought to fix the version format I think. 61.vb33105387180 etc.

You cannot easily delete a release, but there is not generally any need to.

Marit M

unread,
Dec 23, 2021, 11:22:29 PM12/23/21
to Jenkins Developers
I removed the SNAPSHOT to eliminate the timestamp.
How do I set the latest version? 
For some reason it sets the SNAPSHOT release as latest.

Thanks,
Marit.

ב-יום חמישי, 23 בדצמבר 2021 בשעה 16:32:23 UTC+2, ‪Jesse Glick‬‏ כתב/ה:

Marit M

unread,
Dec 23, 2021, 11:29:27 PM12/23/21
to Jenkins Developers
And I don't see the incrementals checks in the PR.
How do I fix that and enable the incrementals? 

ב-יום שישי, 24 בדצמבר 2021 בשעה 06:22:29 UTC+2, ‪Marit M‬‏ כתב/ה:

Marit M

unread,
Dec 23, 2021, 11:57:07 PM12/23/21
to Jenkins Developers
[WARNING] The requested profile "consume-incrementals" could not be activated because it does not exist.
201[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project bmc-cfa: Failed to deploy artifacts: Could not transfer artifact com.bmc.ims:bmc-cfa:hpi:1.0.00 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): authorization failed for https://repo.jenkins-ci.org/releases/com/bmc/ims/bmc-cfa/1.0.00/bmc-cfa-1.0.00.hpi, status: 403 Forbidden -> [Help 1]
202[ERROR]
203[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
204[ERROR] Re-run Maven using the -X switch to enable full debug logging.
205[ERROR]
206[ERROR] For more information about the errors and possible solutions, please read the following articles:
208Error: Process completed with exit code 1.

ב-יום שישי, 24 בדצמבר 2021 בשעה 06:29:27 UTC+2, ‪Marit M‬‏ כתב/ה:

Marit M

unread,
Dec 27, 2021, 4:36:26 AM12/27/21
to Jenkins Developers
How do I make it the latest one?


Thanks,
Marit.


ב-יום שישי, 24 בדצמבר 2021 בשעה 06:57:07 UTC+2, ‪Marit M‬‏ כתב/ה:

Gavin Mogan

unread,
Dec 27, 2021, 4:41:44 AM12/27/21
to Jenkins Developers
Why do you want that one to be the latest?
According to https://github.com/jenkinsci/bmc-cfa-plugin/releases your
latest version is 62 which matches updatecenter
$ curl -qLs https://updates.jenkins.io/update-center.actual.json | jq
'.plugins["bmc-cfa"]["version"]'
"62.v6b7af476b7f8"

So I'm not sure what more you want, it seems to be working fine
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/43e8dfbd-55d0-4877-8c5d-e55f79ecc308n%40googlegroups.com.

Marit M

unread,
Dec 27, 2021, 5:44:17 AM12/27/21
to Jenkins Developers
I didn't meant to create that version format, what do I need to do to format it as: 1.0.00?

ב-יום שני, 27 בדצמבר 2021 בשעה 11:41:44 UTC+2, ga...@gavinmogan.com כתב/ה:

Gavin Mogan

unread,
Dec 27, 2021, 1:13:57 PM12/27/21
to Jenkins Developers
I'll admit, I'm still confused by your request.

If you enable CD, you'll have releases with a sha (ish?) on the end of
it. If you just want the version number, don't use CD. At this point
since version 62 is released to artifactory, you won't be able to have
a version below 62 as they will all get parsed as older releases.

I tried to look at the git history of your repo, but its all over the
place, it looks like you un-did a bunch of jesse's fixes.

Can you clearly state what your desired goals are instead of randomly
changing things and then panicking when its not doing what your
expecting it to work.

Gavin
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/cac1551e-f2be-4c65-9b23-2d7ba5f88eb8n%40googlegroups.com.

Marit M

unread,
Dec 28, 2021, 5:50:09 AM12/28/21
to Jenkins Developers
Sorry for the confusion, now I understand that Incrementals appends a commit number, plus a SHA, to version numbers.
I'll stick with this versioning format and revert my changes.

Thanks,
Marit.

ב-יום שני, 27 בדצמבר 2021 בשעה 20:13:57 UTC+2, ga...@gavinmogan.com כתב/ה:

Jesse Glick

unread,
Dec 28, 2021, 8:58:51 AM12/28/21
to jenkin...@googlegroups.com
On Tue, Dec 28, 2021 at 5:50 AM Marit M <mar...@gmail.com> wrote:
now I understand that Incrementals appends a commit number, plus a SHA, to version numbers.

https://www.jenkins.io/doc/developer/publishing/releasing-cd/#pom-file-modifications says so; is there a way we could make this more prominent? 

Ullrich Hafner

unread,
Dec 28, 2021, 10:59:44 AM12/28/21
to JenkinsCI Developers
Maybe you can inline the existing Abstract form the JEP before the section ‚Prerequisites‘? And add an example that shows the old and new versions in the abstract as well? 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages