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

Websphere deployment plugin expects ant GLOB pattern while deploying a war file to WAS 8.5

      Hi ,

        I am having an issue while deploying .war file to WAS using websphere deployer plugin. I created the war file using maven build. I have configured the war path in the was deployment configuration . I get the below error even though  the  war file is present in path. 
      Connecting to IBM WebSphere Application Server...
      Error deploying to IBM WebSphere Application Server: Expecting Ant GLOB pattern, but saw 'C:/CMrest2\CMRestAPI-master/CMRestAPI/target/ **/*.war'. See
      http://ant.apache.org/manual/Types/fileset.html
      for syntax
      Cannot rollback to previous version: artifact is null
      Build step 'Deploy To IBM WebSphere Application Server' changed build result to FAILURE
      Finished: FAILURE
       

          [JENKINS-59997] Websphere deployment plugin expects ant GLOB pattern while deploying a war file to WAS 8.5

          Below is an update for the issue :

          The plugin is actually expecting a relative path , i.e., it is looking  for the artifact within jenkins workspace . We will  have to place the war file manually in the  workspace folder or will have to run a windows batch command to place war file in workspace  after the build is done.  This violates the intent of devops . Plugin should be able to pick up the war file where it built and place i.e., the absolute path of the war file should be accepted.

          krishna lakshmi added a comment - Below is an update for the issue : The plugin is actually expecting a relative path , i.e., it is looking  for the artifact within jenkins workspace . We will  have to place the war file manually in the  workspace folder or will have to run a windows batch command to place war file in workspace  after the build is done.  This violates the intent of devops . Plugin should be able to pick up the war file where it built and place i.e., the absolute path of the war file should be accepted.

            Unassigned Unassigned
            krishnalakshmip krishna lakshmi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: