[JIRA] [mercurial-plugin] (JENKINS-29425) Multiple SCM + Mercurial + Git

11 views
Skip to first unread message

isanych@gmail.com (JIRA)

unread,
Jul 14, 2015, 12:44:01 PM7/14/15
to jenkinsc...@googlegroups.com
Igor Kostenko created an issue
 
Jenkins / Bug JENKINS-29425
Multiple SCM + Mercurial + Git
Issue Type: Bug Bug
Assignee: Jesse Glick
Components: mercurial-plugin, multiple-scms-plugin, template-project-plugin
Created: 14/Jul/15 4:43 PM
Environment: Jenkins 1.620
multiple-scms 0.4
mercurial 1.54
template-project 1.4.2
Priority: Major Major
Reporter: Igor Kostenko

Jobs which uses 1 Mercurial + 3 Git repositories (via Use SCM from another project template plugin's option) often failing with below error. If I restart job without any changes it building ok. So error is not happening all the time, but still happens often enough. I don't see such errors in other jobs which using multiple Mercurial repos or multiple Git repos. We only recently created jobs which need mix of Mercurial and Git repos, I haven’t seen such error before.

{{Deleting project workspace... done

FATAL: hudson.plugins.mercurial.MercurialTagAction cannot be cast to org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState
java.lang.ClassCastException: hudson.plugins.mercurial.MercurialTagAction cannot be cast to org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState
at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:106)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.plugins.templateproject.ProxySCM.checkout(ProxySCM.java:53)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1282)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)
Archiving artifacts}}

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

isanych@gmail.com (JIRA)

unread,
Jul 15, 2015, 5:10:01 AM7/15/15
to jenkinsc...@googlegroups.com
Igor Kostenko updated an issue
Change By: Igor Kostenko
Jobs which uses 1 Mercurial + 3 Git repositories (via Use SCM from another project template plugin's option) often failing with below error. If I restart job without any changes it building ok. So error is not happening all the time, but still happens often enough. I don't see such errors in other jobs which using multiple Mercurial repos or multiple Git repos. We only recently created jobs which need mix of Mercurial and Git repos, I haven’t seen such error before.  It happening on different linux and windows slaves.
For Mercurial repository caching and sharing are enabled. 
It looks like it depends on slave load - when slave is not doing anything job is running ok, when there are other jobs running on slave, job is failing.

{{
Deleting project workspace... done

FATAL: hudson.plugins.mercurial.MercurialTagAction cannot be cast to org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState
java.lang.ClassCastException: hudson.plugins.mercurial.MercurialTagAction cannot be cast to org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState
at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:106)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.plugins.templateproject.ProxySCM.checkout(ProxySCM.java:53)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1282)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)
Archiving artifacts
}}

isanych@gmail.com (JIRA)

unread,
Jul 17, 2015, 3:24:01 PM7/17/15
to jenkinsc...@googlegroups.com
Igor Kostenko commented on Bug JENKINS-29425
 
Re: Multiple SCM + Mercurial + Git

I've updated multiple-scms to 0.5, and now I'm getting below error a lot: have to restart build many times before it started properly.

Deleting project workspace... done

FATAL: null
java.lang.NullPointerException


at hudson.plugins.templateproject.ProxySCM.checkout(ProxySCM.java:53)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1282)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)

isanych@gmail.com (JIRA)

unread,
Jul 22, 2015, 7:50:01 AM7/22/15
to jenkinsc...@googlegroups.com

I had to get rid of git+mercurial mix, and for fixing below exception I have to always explicitly specify repository browser. In case multiple scm there is only one available choice: auto, so I'm manually modifying job xml.

FATAL: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.plugins.mercurial.MercurialTagAction
java.lang.ClassCastException: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.plugins.mercurial.MercurialTagAction
at hudson.plugins.mercurial.MercurialSCM.determineChanges(MercurialSCM.java:612)
at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:561)
at hudson.scm.SCM.checkout(SCM.java:485)


at hudson.model.AbstractProject.checkout(AbstractProject.java:1282)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)

jglick@cloudbees.com (JIRA)

unread,
Aug 12, 2015, 4:29:01 PM8/12/15
to jenkinsc...@googlegroups.com

Sounds similar to

JENKINS-27638 , supposedly fixed in 0.5.

In general, the Mercurial plugin does not claim to support Multiple SCMs and does not test with it. Your mileage may vary.

jglick@cloudbees.com (JIRA)

unread,
Aug 12, 2015, 4:30:01 PM8/12/15
to jenkinsc...@googlegroups.com

(Multiple checkouts are supported from a Workflow build. Freestyle projects were never designed to support this, hence the hacks in Multiple SCMs.)

brenton@letrabb.com (JIRA)

unread,
Aug 31, 2015, 5:49:01 AM8/31/15
to jenkinsc...@googlegroups.com
Brantone commented on Bug JENKINS-29425

With

JENKINS-27638 closed and new release of template-project, if still reproducible then as stated: "mileage may vary"

rodrigc@FreeBSD.org (JIRA)

unread,
Sep 15, 2016, 9:36:01 PM9/15/16
to jenkinsc...@googlegroups.com
Craig Rodrigues resolved as Won't Fix
 

Suggest that you migrate to Pipeline plugin, which offers a supported way of checking out from multiple scms
https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin

Change By: Craig Rodrigues
Status: Open Resolved
Resolution: Won't Fix
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages