Jenkins “Console Output” log location in filesystem

后端 未结 8 2533
自闭症患者
自闭症患者 2020-12-13 12:56

I want to access and grep Jenkins Console Output as a post build step in the same job that creates this output. Redirecting logs with >> log.txt is not a

8条回答
  •  猫巷女王i
    2020-12-13 13:21

    You can install this Jenkins Console log plugin to write the log in your workspace as a post build step.

    You have to build the plugin yourself and install the plugin manually.

    Next, you can add a post build step like that:

    With an additional post build step (shell script), you will be able to grep your log.

    I hope it helped :)

提交回复
热议问题