[JIRA] (JENKINS-54340) CWP throws error if pom.xml is used for plugins and casc for configuration

5 views
Skip to first unread message

xaseron@googlemail.com (JIRA)

unread,
Oct 30, 2018, 6:14:02 AM10/30/18
to jenkinsc...@googlegroups.com
Michael Werner created an issue
 
Jenkins / Bug JENKINS-54340
CWP throws error if pom.xml is used for plugins and casc for configuration
Issue Type: Bug Bug
Assignee: Oleg Nenashev
Components: custom-war-packager
Created: 2018-10-30 10:13
Priority: Minor Minor
Reporter: Michael Werner
% make clean build run   
rm -rf tmp
java \
    -jar ../../custom-war-packager-cli/target/custom-war-packager-cli-1.4-SNAPSHOT-jar-with-dependencies.jar \
    -configPath packager-config.yml -version 256.0-test
Picked up _JAVA_OPTIONS: -Dhttp.proxyHost=proxy.mms-dresden.de -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.mms-dresden.de -Dhttps.proxyPort=8080
Exception in thread "main" java.io.IOException: CasC section is declared, but CasC plugin is not declared in the plugins list
	at io.jenkins.tools.warpackager.lib.impl.Builder.verifyConfig(Builder.java:66)
	at io.jenkins.tools.warpackager.lib.impl.Builder.build(Builder.java:73)
	at io.jenkins.tools.warpackager.cli.Main.main(Main.java:56)
make: *** [Makefile:15: tmp/output/target/jenkins-casc-demo-256.0-test.war] Error 1

 

I used the the effective pom from the jcasc plugin.

my test code can be found here https://github.com/Xaseron/custom-war-packager/tree/bugreport/demo/casc

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

o.v.nenashev@gmail.com (JIRA)

unread,
Oct 31, 2018, 4:16:02 PM10/31/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-54340
 
Re: CWP throws error if pom.xml is used for plugins and casc for configuration

Thanks Michael Werner!I will try to address it and to incorporate a test case.

 

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 27, 2018, 3:39:01 PM11/27/18
to jenkinsc...@googlegroups.com
Oleg Nenashev started work on Bug JENKINS-54340
 
Change By: Oleg Nenashev
Status: Open In Progress

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 27, 2018, 4:57:01 PM11/27/18
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 27, 2018, 4:57:02 PM11/27/18
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 30, 2018, 10:25:02 AM11/30/18
to jenkinsc...@googlegroups.com

xaseron@googlemail.com (JIRA)

unread,
May 6, 2019, 11:12:02 AM5/6/19
to jenkinsc...@googlegroups.com
Michael Werner commented on Bug JENKINS-54340
 
Re: CWP throws error if pom.xml is used for plugins and casc for configuration

I tried it with https://github.com/jenkinsci/ci.jenkins.io-runner and the problem still persists even if i bump the CWP version to 1.6

 

% make build         
java -jar .build/cwp-cli-1.6.jar \
     -configPath packager-config.yml -version 256.0-test 
May 06, 2019 5:09:41 PM io.jenkins.tools.warpackager.lib.impl.Builder build
INFO: Cleaning up the temporary directory tmp
Exception in thread "main" java.io.IOException: CasC section is declared, but CasC plugin is not declared in the plugins list
	at io.jenkins.tools.warpackager.lib.impl.Builder.verifyConfig(Builder.java:66)
	at io.jenkins.tools.warpackager.lib.impl.Builder.build(Builder.java:97)
	at io.jenkins.tools.warpackager.cli.Main.main(Main.java:53)
make: *** [Makefile:38: build] Error 1

xaseron@googlemail.com (JIRA)

unread,
May 7, 2019, 12:39:01 PM5/7/19
to jenkinsc...@googlegroups.com

It looks like it fails to parse the plugins from the pom.xml. I will create a separate bug report for that.

o.v.nenashev@gmail.com (JIRA)

unread,
May 19, 2019, 2:56:02 PM5/19/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
May 19, 2019, 2:57:02 PM5/19/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages