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

The sourceFiles property is ignored. This causes an error when uses in combination of removePrefix

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Incomplete
    • None
    • Jenkins ver. 2.107.2
      Publish Over CIFS 0.10
      Windows Server 2016

    Description

      When I execute a publish to a CIFS share with the following command in the Jenkinsfile (in the root of the project in Subversion):

       

      cifsPublisher(publishers: [[configName: 'Published_prerelease', transfers: [[cleanRemote: false, excludes: '', flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '', remoteDirectory: '$\{BUILD_TAG}/pls', remoteDirectorySDF: false, removePrefix: 'output/pls', sourceFiles: 'output/pls/'],

       [cleanRemote: false, excludes: '', flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '', remoteDirectory: '$\{BUILD_TAG}/src', remoteDirectorySDF: false, removePrefix: 'sources/progress', sourceFiles: 'sources/progress/bmp*/**'],

       [cleanRemote: false, excludes: '', flatten: true, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '', remoteDirectory: '$\{BUILD_TAG}/wrx', remoteDirectorySDF: false, removePrefix: 'sources/progress', sourceFiles: 'sources/progress/src*/**.wrx']],

      usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false]])

       

      Then I get the following error on execute:

       ERROR: Exception when publishing, exception message [Failed to remove prefix from file named [Jenkinsfile]. Prefix [output/pls/] must be present in all file paths]

      Attachments

        Activity

          slide_o_mix Alex Earl added a comment -

          You can install hpi files via the advanced option in the plugin manager

          slide_o_mix Alex Earl added a comment - You can install hpi files via the advanced option in the plugin manager
          it3xl Ilya Tretyakov it3xl added a comment - - edited

          Ready. I got the same result for

          About Publish Over CIFS 0.12-SNAPSHOT (private-blaBla-jenkins)
          it3xl Ilya Tretyakov it3xl added a comment - - edited Ready. I got the same result for About Publish Over CIFS 0.12-SNAPSHOT ( private -blaBla-jenkins)
          it3xl Ilya Tretyakov it3xl added a comment - - edited

          I got something interesting.
          After all this manipulations I've went to my another job and added there "Send build artifacts to a windows share" again. And now the "Pattern separator" field isn't empty and contains

          [, ]+

          Everything is working now for

          Publish Over CIFS 0.11
          it3xl Ilya Tretyakov it3xl added a comment - - edited I got something interesting. After all this manipulations I've went to my another job and added there "Send build artifacts to a windows share" again. And now the "Pattern separator" field isn't empty and contains [, ]+ Everything is working now for Publish Over CIFS 0.11

          For your information, all publish-over-cifs component type JENKINS issues related to the Publish Over CIFS plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-cifs-plugin/issues

          Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-cifs-plugin/issues/80
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-cifs-plugin/issues?q=%22JENKINS-50989%22

          (Note: this is an automated bulk comment)

          gmcdonald Gavin McDonald added a comment - For your information, all publish-over-cifs component type JENKINS issues related to the Publish Over CIFS plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-cifs-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-cifs-plugin/issues/80 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-cifs-plugin/issues?q=%22JENKINS-50989%22 (Note: this is an automated bulk comment)

          This issue has been closed - please see the new Github Issue for this in the previous comment.

          gmcdonald Gavin McDonald added a comment - This issue has been closed - please see the new Github Issue for this in the previous comment.

          People

            Unassigned Unassigned
            bctrdw Roel de Wildt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: