Standard Maven Build fails when using artifactory plugin only in job chaing

103 views
Skip to first unread message

Jürgen Späder

unread,
Jun 9, 2016, 10:47:47 AM6/9/16
to Jenkins Users
Jenkins 2.0-1.1 (installed via yum)
maven integration plugin 2.13
artifactory plugin 2.4.7
artifactory 4.5.2

We hve a job chain with default dependenvy managment over maven integraton managed (automatic dependency resolution over pom).
artifacts resolved and deployed to artifactory

when i start a job in the chain manually, everytings is always fine

when job is started as downstream jon due to dependency build trigger, it fails, (but not everytimre!):

switching off artifactory plugin makes no sense to me because then the CI approach is not usefull to me anymore.
all other plugins are switched off in job config instead of jira integration (update relevant jira isues), which rus like a charm..
any ideas????

btw: 
- when i switch on: jira integration: job crashes
- when is  swicth on deploy build info to artifact, it crashes too ....


Started by upstream project "foundation/com.fernbach:foundation.web" build number 165
originally caused by:
 Started by upstream project "foundation/com.fernbach:foundation.core" build number 165
 originally caused by:
  Started by upstream project "foundation/com.fernbach:foundation.db" build number 165
  originally caused by:
   Started by upstream project "foundation/com.fernbach:foundation" build number 165
   originally caused by:
    Started by upstream project "foundation" build number 165
    originally caused by:
     Started by an SCM change
Building in workspace /var/lib/jenkins/jobs/common.search/workspace
Disk space threshold is set to :1Gb
Checking disk space Now 
Total Disk Space Available is: 3Gb
 Node Name: master
Running Prebuild steps
Updating http://vm-uranus1/svn/fernbach-R4/common/search/trunk at revision '2016-06-09T15:51:07.501 +0200'
At revision 3576

No changes for http://vm-uranus1/svn/fernbach-R4/common/search/trunk since the previous build
ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com
java.lang.RuntimeException: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers
	at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136)
	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:947)
	at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
	at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:166)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
	at hudson.model.Run.execute(Run.java:1738)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers
	at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.isPassIdentifiedDownstream(BuildUniqueIdentifierHelper.java:95)
	at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:39)
	at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:407)
	at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:139)
	at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)
	... 9 more
project=hudson.maven.MavenModuleSet@5bad3379[common.search]
project.getModules()=[hudson.maven.MavenModule@5ed8d6e6[common.search/com.fernbach:common.search][common.search/com.fernbach:common.search][relativePath:], hudson.maven.MavenModule@2fcf38cf[common.search/com.fernbach:common.search.core][common.search/com.fernbach:common.search.core][relativePath:core], hudson.maven.MavenModule@21a81bd9[common.search/com.fernbach:common.search.web][common.search/com.fernbach:common.search.web][relativePath:web]]
project.getRootModule()=hudson.maven.MavenModule@5ed8d6e6[common.search/com.fernbach:common.search][common.search/com.fernbach:common.search][relativePath:]
FATAL: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers
java.lang.RuntimeException: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers
	at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136)
	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:947)
	at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
	at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:166)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
	at hudson.model.Run.execute(Run.java:1738)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers
	at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.isPassIdentifiedDownstream(BuildUniqueIdentifierHelper.java:95)
	at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:39)
	at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:407)
	at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:139)
	at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)
	... 9 more
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Sending e-mails to: j...@fernbach.com r...@fernbach.com m...@fernbach.com b...@fernbach.com
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE


Reply all
Reply to author
Forward
0 new messages