How to view Jenkins workspace on a Pipeline job?

后端 未结 5 923
夕颜
夕颜 2020-12-24 10:15

How can I view Jenkins workspace on a Pipeline job (it was called workflow job previously)? In a standard Job I could just go to the Job main page and view it by clicking on

5条回答
  •  盖世英雄少女心
    2020-12-24 11:07

    just add a link using the manager.addShortText and manager.createSummary to the workspace in your pipeline job.

    It simple.

    if your Job in in a folder the path just changes the Foldername little

    node("someslave")
    {
        stage("Create workspace link")
        {
            def Foldername = JOB_NAME;          
            def theString = "Workspace";
            manager.addShortText(theString, "blue", "white", "0px", "white");
            manager.createSummary("green.gif").appendText("

    " + theString + "

    ", false, false, false, "blue"); } }

提交回复
热议问题