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

Pipeline-utilities step zip do not create archive file nor any log entry

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins on Linux, Slave on Windows Server 2016

      Using zip do not create the zip-archive file in the workspace and do not produce any log.
      The steps ist marked as success be no archive has been created.
      As nothing about zip is being log it is difficult for me to put more information about what has failed.
      Every path has been verified and writeFile works like a charm on the tested path.

      • Please add a verify step at the end of the zip action (that the file has been created).
      • Fix this issue
      if (fileExists('./Publish/WorkingCopy/Tools')) {
      	zip zipFile:"./Publish/WorkingCopy/Tools.zip", dir:"./Publish/WorkingCopy", glob:"Tools/**/Preload*.*"
      	if (! fileExists('./Publish/WorkingCopy/Tools.zip')) {
      		echo "WARNING: zip command from pipeline failed to create zip."
      	}
      }
      

      Regards, Éric.

          [JENKINS-46981] Pipeline-utilities step zip do not create archive file nor any log entry

          There are no comments yet on this issue.

            rsandell rsandell
            ericlouvard Éric Louvard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: