Plugin release issue

65 views
Skip to first unread message

selva vignesh

unread,
Mar 16, 2020, 8:45:44 AM3/16/20
to Jenkins Developers
Hi team,
When i am performing release getting below error can anyone please assist me.

I've added Artifactory Credentials for Maven. 

mvn release:prepare release:perform

[INFO] Scanning for projects...

[INFO] 

[INFO] -------------------< io.jenkins.plugins:zohosprints >-------------------

[INFO] Building Zoho Sprints 1.1

[INFO] --------------------------------[ hpi ]---------------------------------

[INFO] 

[INFO] --- maven-release-plugin:2.5.3:prepare (default-cli) @ zohosprints ---

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  1.994 s

[INFO] Finished at: 2020-03-16T18:11:02+05:30

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project zohosprints: You don't have a SNAPSHOT project in the reactor projects list. -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Slide

unread,
Mar 16, 2020, 9:56:58 AM3/16/20
to jenkin...@googlegroups.com
You need to have a -SNAPSHOT version in your pom.xml. The version for the release will be asked for during the release process. See  https://github.com/jenkinsci/email-ext-plugin/blob/master/pom.xml#L20 for an example.

--
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/f5184842-53d4-4d8c-be29-bcbc8a5f4321%40googlegroups.com.


--

selva vignesh

unread,
Mar 19, 2020, 3:27:03 AM3/19/20
to jenkin...@googlegroups.com

[INFO] Scanning for projects...

[INFO] 

[INFO] -------------------< io.jenkins.plugins:zohosprints >-------------------

[INFO] Building Zoho Sprints 1.0

[INFO] --------------------------------[ hpi ]---------------------------------

[INFO] 

[INFO] --- maven-release-plugin:2.5.3:prepare (default-cli) @ zohosprints ---

[INFO] Resuming release from phase 'scm-tag'

[INFO] Tagging release with the label beta release...

[INFO] Executing: /bin/sh -c cd /Users/selva-5820/jenkinsgithubrepo/zohosprints-plugin && git tag -F /var/folders/z4/7mg5vgwd1jb4zj9p61kckypdwhyjwq/T/maven-scm-1664433616.commit 'beta release'

[INFO] Working directory: /Users/selva-5820/jenkinsgithubrepo/zohosprints-plugin

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  1.666 s

[INFO] Finished at: 2020-03-19T12:52:30+05:30

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project zohosprints: Unable to tag SCM

[ERROR] Provider message:

[ERROR] The git-tag command failed.

[ERROR] Command output:

[ERROR] fatal: 'beta release' is not a valid tag name.

[ERROR] 

[ERROR] -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


After the all change getting error like this. what might be the git-tag.
I gave as beta release
Kindly assist

Raihaan Shouhell

unread,
Mar 19, 2020, 3:32:04 AM3/19/20
to jenkin...@googlegroups.com
git tags cannot take spaces IIRC pick a name without a space

Cheers,
Raihaan

Gavin Mogan

unread,
Mar 19, 2020, 3:32:18 AM3/19/20
to jenkin...@googlegroups.com
Googling a bit after reading the git tag man page like it suggested. https://git-scm.com/docs/git-check-ref-format

Tag really should be single unique ASCII word.

So "beta" might work once, but you really want "1.1.0-beta" or something.

If it contains alpha or beta it'll go into the experimental update center - https://jenkins.io/doc/developer/publishing/releasing-experimental-updates/

Richard Bywater

unread,
Mar 19, 2020, 3:34:49 AM3/19/20
to jenkin...@googlegroups.com
Further to Gavin's advice I would ensure that the tag matches the version number of the plugin release you are making so that future people can easily see what the source code looked like for, say, v1.2 of the plugin release.

Richard 

selva vignesh

unread,
Mar 19, 2020, 6:24:39 AM3/19/20
to jenkin...@googlegroups.com

    [INFO] ------------------------------------------------------------------------

    [INFO] BUILD FAILURE

    [INFO] ------------------------------------------------------------------------

    [INFO] Total time:  01:03 min

    [INFO] Finished at: 2020-03-19T15:44:58+05:30

    [INFO] ------------------------------------------------------------------------

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project zohosprints: Failed to deploy artifacts: Could not transfer artifact io.jenkins.plugins:zohosprints:hpi:1.0 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): Access denied to: https://repo.jenkins-ci.org/releases/io/jenkins/plugins/zohosprints/1.0/zohosprints-1.0.hpi -> [Help 1]

    [ERROR] 

    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

    [ERROR] 

    [ERROR] For more information about the errors and possible solutions, please read the following articles:

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  03:54 min

[INFO] Finished at: 2020-03-19T15:44:58+05:30


I have done needed changes and now getting this error as Access denied.
I have added encrypted credential in my system under ~/.m2/settings.xml.
Kindly assist.

Richard Bywater

unread,
Mar 19, 2020, 6:42:39 AM3/19/20
to jenkin...@googlegroups.com
Have you followed the instructions at https://github.com/jenkins-infra/repository-permissions-updater/ to get your user permissions to perform the upload into the release repository?

Richard.

selva vignesh

unread,
Mar 19, 2020, 6:48:51 AM3/19/20
to jenkin...@googlegroups.com
Hi Richard,
Yes i have raised the pull request and my yml (plugin-zohosprints.yml) has been merged with the repository-permissions-updater repo.


{
    "errors": [
        {
            "status": 404,
            "message": "{\"error\":\"Item releases:io/jenkins/plugins/zohosprints does not exist\"}"
        }
    ]
}


Do i need to do anything? kindly assist

selva vignesh

unread,
Mar 19, 2020, 7:28:24 AM3/19/20
to jenkin...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages