Jenkins Pipeline Job with file parameter

前端 未结 8 1960
难免孤独
难免孤独 2020-12-01 10:33

I\'m putting together a Jenkins pipeline job which will take a file parameter. I can trigger the job and point it at a file however I can\'t find where the file has ended up

8条回答
  •  半阙折子戏
    2020-12-01 11:02

    I tried using the solution provided by @Christoph Forster , but the input File was not getting copied anywhere in the workspace . So I used the workaround as provided in https://bitbucket.org/janvrany/jenkins-27413-workaround-library/src/6b7dada8ea37?at=default

    The library provides a new library - unstashParam - that saves the file build parameter into a workspace. Works fine with text and yaml file .

提交回复
热议问题