cron trigger limited to one branch in the Jenkinsfile

2021-09-10 Thread Francois Marot
Hello all, I set up a cron trigger in my Jenkinsfile of the master branch, but now new branches are also built by this trigger at night. I would like to limit this behavior to my 'master' branch. How would you do that ? I know I can abort the build if I detect that that a cron triggered it but

Any way to construct a url to a particular file in the jenkins workspace?

2021-09-10 Thread David Karr
When a Jenkins build completes, I can navigate to "Workspaces" to manually inspect files in the workspace. While I'm navigating that tree, and viewing specific files, I can see that the current browser url goes directly to that point in the tree, and to the specific file I am viewing. Is there a

Re: Any way to construct a url to a particular file in the jenkins workspace?

2021-09-10 Thread David Karr
I do notice that my build has a "BUILD_URL" var in the environment, so that gives me the "prefix" of the url, but the url to the file in the workspace has pieces like the following after the BUILD_URL value: "/execution/node/22/ws/". I don't see anything else in the environment that can help me