Re: Any way to construct a url to a particular file in the jenkins workspace?
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 construct that part of the url. On Friday, September 10, 2021 at 9:22:16 AM UTC-7 David Karr wrote: > 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 practical way in a Jenkins scripted pipeline, to CONSTRUCT a > url to a file in the workspace so I can print it out in the log, to enable > a single click to get to a particular file? > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d3dbf8b8-93c0-4194-8311-bac7656b90b6n%40googlegroups.com.
Any way to construct a url to a particular file in the jenkins workspace?
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 practical way in a Jenkins scripted pipeline, to CONSTRUCT a url to a file in the workspace so I can print it out in the log, to enable a single click to get to a particular file? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAA5t8VrTcOF-1AtCS_%3DfnR9hhfQmF%2BSJ8J62pyVtWqJs-neFag%40mail.gmail.com.
cron trigger limited to one branch in the Jenkinsfile
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 I dream of a simpler way. pipeline { triggers { cron('H 5 * * 1,3,5') } ... regards François -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3283680f-62ff-4acf-aeca-2fe2cdc829a1n%40googlegroups.com.