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

2021-09-13 Thread Jerome Godbout
Humm, that would be hard and security unwise. The executing node path aren't available to the web. If you are on a secure local network and you really want to go down that road, you need to 1. mount the slave nodes into the master node local path that would be accessible by the jenkins w

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

2021-09-13 Thread Jerome Godbout
Some helper I made for my scripted: Path conversion: *def ToWindowsPath(path) {* *return path.replace("/", "\\");* *}* *def ToUnixPath(path) {* *return path.replace("\\","/");* *}* *def ToNativePath(path) {* *if(isUnix()) {* *return ToUnixPath(path);* * }* *return ToWindowsPath(path);* *}* *def

Re: Can't run shell script in docker container

2021-09-02 Thread Jerome Godbout
Are you sure the mount of tmp did work and not superseed by another default mount there? Maybe try to touch a new file from the docker and see if it show up into the original tmp folder. If so, it mean you might have permission problems instead. Make sure to allow rw for everyone on the file

Re: Execute shell script from jenkins

2021-08-12 Thread Jerome Godbout
You can also use the WSL on recent Windows and call the wsl shell, which can be call with: “wsl ${cmd}” I made myself a function that do call the proper shell based on the current platform, so my pipeline script does look like a big if else mess for each shell command, on windows it append t

Jenkins pipeline git branch push trigger

2019-11-11 Thread Jerome Godbout
Hi, I'm using my Jenkins file pipeline to checkout and build, I have a pipeline project I would like to get triggered only when a push to a specific branch occur. The Git repos is host on bitbucket cloud services. I cannot make a webhook, since the Jenkins run on an intranet and cannot be access