Help me fix bug https://issues.jenkins-ci.org/browse/JENKINS-62343 in gitlab-branch-source-plugin

2020-10-13 Thread Viacheslav Dubrovskyi
Hi All. I'm new in jenkins plugin development. But I'm trying to fix https://issues.jenkins-ci.org/browse/JENKINS-62343 in gitlab-branch-source-plugin. It's blocker for use plugin. And I can't understand at all how getting Jenkinsfile is implemented in this plugin. :( According the documen

Logging for dependency-track-plugin

2020-10-13 Thread 'benny....@googlemail.com' via Jenkins Users
Hi everyone, I'm trying to integrate the dependency-track-plugin in our jenkins environment. The dependencyTrackPublisher build step is failing to upload the json file to the dependency track server. In the build log it only says "hudson.AbortException: Dependency Track server upload failed" w

Migrate from Setenv to Environment Injector Plugin

2020-10-13 Thread Sylvain Gilgen
I tried to migrate from the deprecated Hudson Setenv Plugin to the Environment Injector Plugin. According to the Documentation the migration should be automatic. After the installation of the Environment Injector Plugin the Variables I've set were gone. How can I migrate to the Environment In

How to get command versions supported by Pipeline

2020-10-13 Thread Ven H
In my Jenkinsfile, I am using the following command bat "dotnet restore" I have .NET Core SDK installed in the Jenkins Slave, but still the job throws an error saying "'dotnet' is not recognized as an internal or external command, operable program or batch file." So, how to know which version of

Re: How to get command versions supported by Pipeline

2020-10-13 Thread Eric Pyle
This message is telling you that your "bat" step does not know where to find the "dotnet" command. If you give the full path it should succeed. On 10/13/2020 9:33 AM, Ven H wrote: In my Jenkinsfile, I am using the following command bat "dotnet restore" I have .NET Core SDK installed in the Je

Re: How to get command versions supported by Pipeline

2020-10-13 Thread Ven H
Thanks a lot for your response. However, I have another slave where it works just fine without path. So, I am trying to understand which version it supports. Also, I don't want to hardcode the path in the Jenkinsfile. Please help. Regards, Venkatesh On Tue, Oct 13, 2020 at 7:14 PM Eric Pyle wro

Re: How to get command versions supported by Pipeline

2020-10-13 Thread Slide
There is no direct support in Jenkins for the dotnet command, if you are using the bat step, then it should function just like if you ran the command in cmd.exe as the user that your Jenkins agent is running as. On Tue, Oct 13, 2020, 07:10 Ven H wrote: > Thanks a lot for your response. However,

Re: How to get command versions supported by Pipeline

2020-10-13 Thread Ven H
Thank you for the response. However, the bat step runs fine in one machine and not the other. The only difference is in the version of .Net Core SDK. That's why I am surprised. Is it looking for an exact version of a specific command? Please let me know. bat "dotnet restore" Regards, Venkatesh