[JIRA] Created: (HUDSON-5604) Maven 2 release triggers sonar builds

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Created: (HUDSON-5604) Maven 2 release triggers sonar builds

Hudson issues mailing list
Maven 2 release triggers sonar builds
-------------------------------------

                 Key: HUDSON-5604
                 URL: http://issues.hudson-ci.org/browse/HUDSON-5604
             Project: Hudson
          Issue Type: Bug
          Components: m2release
            Reporter: rombert
            Assignee: teilo


When using Hudson to perform a maven release, it also activates sonar which is configured to run when a build is triggered by a 'Build periodically' event.

This makes releases unnecessarily slow.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5604) Maven 2 release triggers sonar builds

Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135950#action_135950 ]

teilo commented on HUDSON-5604:
-------------------------------

How do you trigger Sonar?
Can you provide a sample minimisitic project that shows this.

All that the plugin does is call release:prepare release:perform under the hood which will do exactly what you have configured maven to do.

> Maven 2 release triggers sonar builds
> -------------------------------------
>
>                 Key: HUDSON-5604
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5604
>             Project: Hudson
>          Issue Type: Bug
>          Components: m2release
>            Reporter: rombert
>            Assignee: teilo
>
> When using Hudson to perform a maven release, it also activates sonar which is configured to run when a build is triggered by a 'Build periodically' event.
> This makes releases unnecessarily slow.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Updated: (HUDSON-5604) Maven 2 release triggers sonar builds

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

rombert updated HUDSON-5604:
----------------------------

    Attachment: screenshot.png

Sonar global configuration.

Sonar is configured to be triggered on 'build periodically', since all other builds are trigged on scm changes.

Perhaps the release plugin behind the scenes scheduled a build immediately and therefore unwillingly triggers sonar as well?

> Maven 2 release triggers sonar builds
> -------------------------------------
>
>                 Key: HUDSON-5604
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5604
>             Project: Hudson
>          Issue Type: Bug
>          Components: m2release
>            Reporter: rombert
>            Assignee: teilo
>         Attachments: screenshot.png
>
>
> When using Hudson to perform a maven release, it also activates sonar which is configured to run when a build is triggered by a 'Build periodically' event.
> This makes releases unnecessarily slow.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5604) Maven 2 release triggers sonar builds

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=136177#action_136177 ]

teilo commented on HUDSON-5604:
-------------------------------

Running the release plugin will schedule *at least one* build - it has to build the project!.

The build is scheduled and will perform the relase.

If you monitor SCM for changes as part of the release the release plugin commits changes to the tag (release version) and trunk (release version, next version).  If Hudson is then monitoring this then you will see a build scheduled *after* the release has run.

However it appears as though Hudson is doing exactly what you have asked it to do.  
You are asking Sonar to run on every build - this includes the release build.  If you don't want this I suggest you remove the sonar plugin and configure it inside the Maven project and enable it only in a profile (active by default), and disable it during the release build (see release profiles in Maven)

> Maven 2 release triggers sonar builds
> -------------------------------------
>
>                 Key: HUDSON-5604
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5604
>             Project: Hudson
>          Issue Type: Bug
>          Components: m2release
>            Reporter: rombert
>            Assignee: teilo
>         Attachments: screenshot.png
>
>
> When using Hudson to perform a maven release, it also activates sonar which is configured to run when a build is triggered by a 'Build periodically' event.
> This makes releases unnecessarily slow.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5604) Maven 2 release triggers sonar builds

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=136183#action_136183 ]

rombert commented on HUDSON-5604:
---------------------------------

First of all, thank you for having the patience to dig into this.

Second of all, I understand what you're saying, and I guess this is an unfortunate interaction between Sonar and the Maven release plugin. I hoped that the release plugin build would count as 'Manually started by user', but it internally to hudson this generates a scheduled build.

Also, due to the configuration of the sonar plugin inside hudson I don't have it configured in my POM file and there is no 'disable' property ( http://mojo.codehaus.org/sonar-maven-plugin/sonar-mojo.html ) .

I don't seem to have rights to CC a sonar plugin maintainer ( sonarteam ) . Perhaps you can do that? Otherwise, perhaps re-assigning this to the sonar component will allow us to take the discussion further.

> Maven 2 release triggers sonar builds
> -------------------------------------
>
>                 Key: HUDSON-5604
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5604
>             Project: Hudson
>          Issue Type: Bug
>          Components: m2release
>            Reporter: rombert
>            Assignee: teilo
>         Attachments: screenshot.png
>
>
> When using Hudson to perform a maven release, it also activates sonar which is configured to run when a build is triggered by a 'Build periodically' event.
> This makes releases unnecessarily slow.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Updated: (HUDSON-5604) Maven 2 release triggers sonar builds

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

teilo updated HUDSON-5604:
--------------------------

     Issue Type: New Feature  (was: Bug)
    Component/s: sonar
                     (was: m2release)

The release plugin is doing exactly what it should.  The user is asking Sonar to not run for these types of builds - so Sonar would need to check the cause to see if it should run or not.

> Maven 2 release triggers sonar builds
> -------------------------------------
>
>                 Key: HUDSON-5604
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5604
>             Project: Hudson
>          Issue Type: New Feature
>          Components: sonar
>            Reporter: rombert
>            Assignee: teilo
>         Attachments: screenshot.png
>
>
> When using Hudson to perform a maven release, it also activates sonar which is configured to run when a build is triggered by a 'Build periodically' event.
> This makes releases unnecessarily slow.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Assigned: (HUDSON-5604) Maven 2 release triggers sonar builds

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

godin reassigned HUDSON-5604:
-----------------------------

    Assignee: godin  (was: teilo)

Hi guys,

Robert, no need to CC sonar maintainer - we are checking new issues in this component periodically ;)

After brief viewing of source code of m2release plugin I can say that it uses UserCause, so I was wondered about such behaviour. I suppose that Teilo is right - everything is ok on m2release side. And I'll try to figure out what's happens.

> Maven 2 release triggers sonar builds
> -------------------------------------
>
>                 Key: HUDSON-5604
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5604
>             Project: Hudson
>          Issue Type: New Feature
>          Components: sonar
>            Reporter: rombert
>            Assignee: godin
>         Attachments: screenshot.png
>
>
> When using Hudson to perform a maven release, it also activates sonar which is configured to run when a build is triggered by a 'Build periodically' event.
> This makes releases unnecessarily slow.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5604) Maven 2 release triggers sonar builds

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=136204#action_136204 ]

godin commented on HUDSON-5604:
-------------------------------

FYI, I've found root of this problems and created issue in Sonar Jira - http://jira.codehaus.org/browse/SONARPLUGINS-378
So this will be fixed in next version.

> Maven 2 release triggers sonar builds
> -------------------------------------
>
>                 Key: HUDSON-5604
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5604
>             Project: Hudson
>          Issue Type: New Feature
>          Components: sonar
>            Reporter: rombert
>            Assignee: godin
>         Attachments: screenshot.png
>
>
> When using Hudson to perform a maven release, it also activates sonar which is configured to run when a build is triggered by a 'Build periodically' event.
> This makes releases unnecessarily slow.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5604) Maven 2 release triggers sonar builds

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=136218#action_136218 ]

rombert commented on HUDSON-5604:
---------------------------------

That's great to hear!

Thanks.

> Maven 2 release triggers sonar builds
> -------------------------------------
>
>                 Key: HUDSON-5604
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5604
>             Project: Hudson
>          Issue Type: New Feature
>          Components: sonar
>            Reporter: rombert
>            Assignee: godin
>         Attachments: screenshot.png
>
>
> When using Hudson to perform a maven release, it also activates sonar which is configured to run when a build is triggered by a 'Build periodically' event.
> This makes releases unnecessarily slow.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Resolved: (HUDSON-5604) Maven 2 release triggers sonar builds

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

godin resolved HUDSON-5604.
---------------------------

    Resolution: Fixed

Fixed in trunk.

> Maven 2 release triggers sonar builds
> -------------------------------------
>
>                 Key: HUDSON-5604
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5604
>             Project: Hudson
>          Issue Type: New Feature
>          Components: sonar
>            Reporter: rombert
>            Assignee: godin
>         Attachments: screenshot.png
>
>
> When using Hudson to perform a maven release, it also activates sonar which is configured to run when a build is triggered by a 'Build periodically' event.
> This makes releases unnecessarily slow.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Closed: (HUDSON-5604) Maven 2 release triggers sonar builds

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

godin closed HUDSON-5604.
-------------------------


Fixed in 1.3.1.

> Maven 2 release triggers sonar builds
> -------------------------------------
>
>                 Key: HUDSON-5604
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5604
>             Project: Hudson
>          Issue Type: New Feature
>          Components: sonar
>            Reporter: rombert
>            Assignee: godin
>         Attachments: screenshot.png
>
>
> When using Hudson to perform a maven release, it also activates sonar which is configured to run when a build is triggered by a 'Build periodically' event.
> This makes releases unnecessarily slow.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]