tee keeps file open

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Using the below pipeline script fails in the second stage and in any subsequent runs until the master or slave isn't restarted.

       

      The error is:
      ERROR: Cannot delete workspace...
       

      The script:

      stage('first') {
        node() {
          cleanWs()

          tee('output.log')

      Unknown macro: {      echo 'test'    }

        }
      }

      stage('second') {
        node()

      Unknown macro: {    cleanWs()     echo 'cleaned'  }

      }

      Marked as critical due to the fact that slave/master restart is required to resolve the issue and allow further runs to wipe the workspace (until tee is used again).

       

            Assignee:
            Szabolcs Tolnai
            Reporter:
            Szabolcs Tolnai
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: