-
Bug
-
Resolution: Unresolved
-
Minor
-
None
import org.apache.maven.model.Model
Model mavenProject = readMavenPom(file: pom)
The above groovy script causes a ClassCastException when executing a Pipeline script:
[Pipeline] echo Marking build as failure due to the following error: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'com.foo:bar-api:jar:0.6.1-201612151515.0777507' with class 'org.apache.maven.model.Model' to class 'org.apache.maven.model.Model' [Pipeline] stage
- duplicates
-
JENKINS-70717 MissingMethodException ClassCastException because of plugin classloader
- Open
- is duplicated by
-
JENKINS-40432 writeMavenPom throws class cast exception when creating a new pom file
- Resolved
- relates to
-
JENKINS-49669 readJSON returns non serializable JSON object
- Open
- links to