Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54340

CWP throws error if pom.xml is used for plugins and casc for configuration

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      % 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

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

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

             

            Show
            oleg_nenashev Oleg Nenashev added a comment - Thanks Michael Werner !I will try to address it and to incorporate a test case.  
            Show
            oleg_nenashev Oleg Nenashev added a comment - https://github.com/jenkinsci/custom-war-packager/pull/54  
            Show
            oleg_nenashev Oleg Nenashev added a comment - https://github.com/jenkinsci/custom-war-packager/tree/master/demo/external-logging-elasticsearch
            Hide
            xaseron Michael Werner added a comment -

            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
            
            
            Show
            xaseron Michael Werner added a comment - 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
            Hide
            xaseron Michael Werner added a comment -

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

            Show
            xaseron Michael Werner added a comment - It looks like it fails to parse the plugins from the pom.xml. I will create a separate bug report for that.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Michael Werner it is a regression in the recent release. Working on it

            Show
            oleg_nenashev Oleg Nenashev added a comment - Michael Werner it is a regression in the recent release. Working on it
            Hide
            oleg_nenashev Oleg Nenashev added a comment -
            Show
            oleg_nenashev Oleg Nenashev added a comment - See JENKINS-57547

              People

              Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              xaseron Michael Werner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: