• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • file-operations-plugin
    • None
    • jenkins: 2.361
      FileOparationsPlugin: 1.11
      OpenJDK11

       

      Following Pipeline does not show any success:

      cleanWs()
          
          dir("Super") {
              bat "dir"
              bat "echo hansi > hansi.txt"
              bat "mkdir hansi2"
              bat "echo hansi3 > hansi3.txt"
              bat "mkdir hansi3"
              bat "dir"
              bat "dir"
          }
          stage("FileOP") {
          fileOperations([
          folderCopyOperation(
              sourceFolderPath: "Super/hansi2",
              destinationFolderPath: "hansi2"
              )])
          fileOperations([
          folderDeleteOperation(
            folderPath : 'Super'
          )])
          fileOperations([
          folderCopyOperation(
              sourceFolderPath: "hansi2",
              destinationFolderPath: "Super/hansi2"
          )])
          }
          
          bat "dir"
          dir("Super") {
              bat "dir"
          } 

          [JENKINS-69680] FileOperationsPlugin seems to be buggy

          Nikolai Ehrhardt created issue -
          Nikolai Ehrhardt made changes -
          Description Original:  

          Following Pipeline does not show any success:

          cleanWs()
              
              dir("Super") {
                  bat "dir"
                  bat "echo hansi > hansi.txt"
                  bat "mkdir hansi2"
                  bat "echo hansi3 > hansi3.txt"
                  bat "mkdir hansi3"
                  bat "dir"
                  bat "dir"
              }
              stage("FileOP") {
              fileOperations([
              folderCopyOperation(
                  sourceFolderPath: "Super/hansi2",
                  destinationFolderPath: "hansi2"
                  )])
              fileOperations([
              folderDeleteOperation(
                folderPath : 'Super'
              )])
              fileOperations([
              folderCopyOperation(
                  sourceFolderPath: "hansi2",
                  destinationFolderPath: "Super/hansi2"
              )])
              }
              
              bat "dir"
              dir("Super") {
                  bat "dir"
              }
          New:  

          Following Pipeline does not show any success:
          {code:java}
          cleanWs()
              
              dir("Super") {
                  bat "dir"
                  bat "echo hansi > hansi.txt"
                  bat "mkdir hansi2"
                  bat "echo hansi3 > hansi3.txt"
                  bat "mkdir hansi3"
                  bat "dir"
                  bat "dir"
              }
              stage("FileOP") {
              fileOperations([
              folderCopyOperation(
                  sourceFolderPath: "Super/hansi2",
                  destinationFolderPath: "hansi2"
                  )])
              fileOperations([
              folderDeleteOperation(
                folderPath : 'Super'
              )])
              fileOperations([
              folderCopyOperation(
                  sourceFolderPath: "hansi2",
                  destinationFolderPath: "Super/hansi2"
              )])
              }
              
              bat "dir"
              dir("Super") {
                  bat "dir"
              } {code}
          Nikolai Ehrhardt made changes -
          Environment Original: jenkins: 2.361
          FileOparationsPlugin: 1.11
          New: jenkins: 2.361
          FileOparationsPlugin: 1.11
          OpenJDK11

            pskumar448 Suresh Kumar
            pymann Nikolai Ehrhardt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: