Disable Multibranch Pipeline

2020-08-13 Thread Ven H
Hi, I am working on a Multibranch pipeline. The implementation is in progress and hence I want to keep it disabled, so that scanning doesn't happen. But, I am not sure how to do it. Any help will be appreciated. Regards, Venkatesh -- You received this message because you are subscribed to the G

Unable to locate file Groovy-html.template

2020-08-13 Thread Ven H
Hi, I would like to customize groovy-html.template to update some information. I am unable to locate this file anywhere (including Home, Plugins directories) in the Jenkins server. Without this file being in the server, not sure how this functionality is even working (and it is actually working fo

ExcludedRegions for SVN not working in Pipeline

2020-08-13 Thread Ven H
Hi, I have a pipeline which is configured for the SVN path in Jenkins pipeline. https://svn.domain.com/org/project/trunk/Platform/Src Within Src, I have a Build folder and there are some projects inside that as well. So, I want to exclude some projects within the Build folder. So I put the Exclud

Tag this Build Duplicate

2020-08-13 Thread Ven H
Hi, I am facing the exact issue mentioned below in the link. Does anyone have any idea about the fix? https://issues.jenkins-ci.org/browse/JENKINS-35176 Regards, Venkatesh -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from th

Re: Unable to locate file Groovy-html.template

2020-08-13 Thread Ven H
dified version, you can look here for information: > https://plugins.jenkins.io/email-ext. Search for "Jelly content" on that > page and it will tell you about templates and show you where the existing > templates are on GitHub for you to copy and modify. > > On Thu, Aug 13

Multibranch Pipeline job creating multiple Checkout Directories in Workspace

2020-08-19 Thread Ven H
Hi, I have a Multibranch Pipeline job setup for SVN. In Trunk, I have a directory called Platform which has a Jenkins file. The workspace structure is something like Drive\Workspace_Dir\trunk%2FPlatform. After a few builds, I can see some strange things happening with this. The Workspace_Dir has

Re: Multibranch Pipeline job creating multiple Checkout Directories in Workspace

2020-08-20 Thread Ven H
Thanks a lot. Can you please advise on how to stop / control this behavior? Regards, Venkatesh On Thu, Aug 20, 2020 at 3:34 PM 'Björn Pedersen' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > This standard behaviour if jobs run in parallel. The first run uses: > trunk%2FPlatform

Re: ExcludedRegions for SVN not working in Pipeline

2020-08-20 Thread Ven H
Does anyone have a solution for this? Regards, Venkatesh On Thu, Aug 13, 2020 at 12:00 PM Ven H wrote: > Hi, > > I have a pipeline which is configured for the SVN path in Jenkins > pipeline. https://svn.domain.com/org/project/trunk/Platform/Src > > Within Src, I have a Buil

Ignore Post Build Job failure in Jenkins Pipeline

2020-08-21 Thread Ven H
Hi, I have a JobA defined in Jenkins Pipeline. When JobA builds successfully, I trigger JobB from the Post step. But, if JobB fails in some step, it marks JobA also as Failed. Is there a way (some setting or option) to ignore the failure in JobB so that it doesn't fail JobA (since it built succes

Re: Ignore Post Build Job failure in Jenkins Pipeline

2020-08-21 Thread Ven H
Hi Jeremy, Thanks a lot for your response. I am using a Declarative approach (Jenkinsfile). Could you please provide some more details on the don't wait option, if possible? JobA runs successfully and triggers JobB from Post build. But if JobB fails, it marks JobA also as failed even though JobA r

Re: Ignore Post Build Job failure in Jenkins Pipeline

2020-08-21 Thread Ven H
Thanks a lot once again, Jeremy. Just curious. Are there any major functional differences between Declarative and Scripted? I thought there are only minor differences. So, if something works in Scripted approach, it should work in Declarative approach as well, right? With that said, you have provi

Re: ExcludedRegions for SVN not working in Pipeline

2020-08-24 Thread Ven H
Has anyone faced this? Does anyone have any idea? Please help. Regards, Venkatesh On Fri, Aug 21, 2020 at 12:05 AM Ven H wrote: > Does anyone have a solution for this? > > > Regards, > Venkatesh > > > On Thu, Aug 13, 2020 at 12:00 PM Ven H wrote: > >> Hi,

Re: ExcludedRegions for SVN not working in Pipeline

2020-08-25 Thread Ven H
Here is some update. I was able to solve this *partially*. I hope it will help someone in a similar situation. In my Jenkins Script (Scripted, I hope it will work in Declarative approach too), I made the following changes in my checkout step. checkout([$class: 'SubversionSCM', excludedRegions: '*

Re: ExcludedRegions for SVN not working in Pipeline

2020-08-27 Thread Ven H
No one else faced this issue before? Unfortunately, there is no good documentation or blogs or forums for this. Regards, Venkatesh On Tue, Aug 25, 2020 at 8:54 PM Ven H wrote: > Here is some update. I was able to solve this *partially*. I hope it will > help someone in a similar situati

Re: one downstream with multiple upstreams(all upstreams should be success)

2020-09-02 Thread Ven H
Hi, How about using "wait" and "propagate" attributes on build step? Can you check if these help in your case? Regards, Venkatesh On Wed, Sep 2, 2020 at 12:00 PM Reinhold Füreder wrote: > Hi Keshav, > > > > sorry for interfering, but I think Gianluca’s pseudo code and hint should > actually h

Regular Expressions in Include Branches for SVN Multibranch Pipeline

2020-09-03 Thread Ven H
I have a Multibranch Pipeline job for SVN. Under Branch Sources, I have the following paths. Include Branches: trunk/Project/Source/Build/Module, branches/Project/*/Source/Build/Module Exclude Branches: branches/Project/1.0.1.0/Source/Build/Module In the Include Branches, I would like to specify

Re: How to refer to an object in a shared library?

2020-09-17 Thread Ven H
Hi, Even if you are importing the namespace, use the full name for the class and try. For example, com.company.deployment.common.MyClass obj = new com.company.deployment.common.MyClass() Regards, Venkatesh On Fri, Sep 18, 2020 at 12:56 AM zil...@gmail.com wrote: > I use this extensibly in my

Re: How to refer to an object in a shared library?

2020-09-21 Thread Ven H
Glad it worked. No problem. Regards, Venkatesh On Sat, Sep 19, 2020 at 1:49 AM zil...@gmail.com wrote: > Venkatesh, > > That was it. Thanks. > > Chris > > On Friday, September 18, 2020 at 3:52:01 PM UTC-4 zil...@gmail.com wrote: > >> Oh, let me try that. Thanks >> >> On Friday, September 18, 2

Cascaded choice parameters and parameter validations in Jenkins pipeline

2020-09-27 Thread Ven H
Hi, I have a Jenkins pipeline job. I need to define parameters with the following requirements. 1. I have choice parameters which need to be populated from method calls. 2. Some choice parameters need to be populated from method calls, but based on the selection of some other choice parameters.

Re: Cascaded choice parameters and parameter validations in Jenkins pipeline

2020-09-30 Thread Ven H
Can anyone please help with this? Regards, Venkatesh On Sun, Sep 27, 2020 at 11:51 PM Ven H wrote: > Hi, > > I have a Jenkins pipeline job. I need to define parameters with the > following requirements. > > 1. I have choice parameters which need to be populated from method

ValidatingString Parameter issue in Jenkinsfile

2020-10-01 Thread Ven H
I am using the following parameter which should validate empty string and show the error message, but the validation message should disappear if there is an non empty string input for the parameter. But the parameter is not working. Does anyone have any idea? I searched, but couldn't find anything.

Re: Declarative Pipeline to trigger Job in Post-build actions if condition satisfies

2020-10-07 Thread Ven H
Yes. You can, but remember to put your if condition inside a script element. Regards, Venkatesh On Wed, Oct 7, 2020 at 1:15 PM john levin wrote: > Hello Team, > > Shall we put a if condition in post build actions to trigger other jobs if > condition matches. > > Say for example > > If date mat

SVN Issue

2020-10-12 Thread Ven H
We have a Jenkins master configured (long back) on Windows Server. All our slaves are also on Windows servers, since the application source code is in .Net. We have configured multibranch pipeline jobs which are working fine. However, we are planning to migrate Jenkins master to Linux, although th

Re: SVN Issue

2020-10-12 Thread Ven H
Thanks a lot for your response. I fixed it. It was a credential issue.Sorry for the inconvenience. Regards, Venkatesh On Mon, Oct 12, 2020 at 11:56 PM Ivan Fernandez Calvo < kuisathave...@gmail.com> wrote: > >we are planning to migrate Jenkins master to Linux > > Do your new Jenkins instance is

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 Ven H
Pyle wrote: > 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 > &

Re: How to get command versions supported by Pipeline

2020-10-13 Thread Ven H
t; On Tue, Oct 13, 2020, 07:10 Ven H wrote: > >> 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. >

"From address" in Jenkins not working

2020-10-21 Thread Ven H
Hi, I have a Jenkins instance running as a Docker container on a Linux OS (Ubuntu). I have configured "System Admin e-mail address" in Manage Jenkins and also configured Email for sending build notifications. Emails are being sent properly, but when the emails are received, in the From Address, it

Global Tools Configuration

2020-11-12 Thread Ven H
I have a Jenkins master running as a Docker container in a Linux Host. The slaves are Windows servers. I need to install some custom tools using Global Tools Configuration. For example, I need to install OpenCover (there is a plugin for this, but I don't want to use it). I got the zip file for Open

Dynamic Jenkins file

2020-12-07 Thread Ven H
Is it possible to define everything including SharedLibrary method names for call, parameters, stages, steps etc in a yml file and call during execution? I want to create a generic Jenkinsfile, which will load & execute everything based on the yml data. Please advise. -- You received this message

Scripts in environment stage

2020-12-08 Thread Ven H
Can we have script block or credential block to perform some logic inside the environment stage in Jenkinsfile? When I tried, it kept throwing errors saying only variable=value kind of expressions are allowed inside the environment stage. I want to read a Yaml file inside the environment stage sinc

Re: Scripts in environment stage

2020-12-08 Thread Ven H
at 1:07 AM Yves Schumann wrote: > Hi Ven > > Am 08.12.2020 um 18:56 schrieb Ven H: > > Can we have script block or credential block to perform some logic > > inside the environment stage in Jenkinsfile? > > I'm doing such things without issues. Some exa

Accessing Special Built-In Jenkins Variables List

2020-12-16 Thread Ven H
Hi, We have special Built-In Jenkins Variables for a Job like ${JOB_NAME}, ${JOB_URL}, ${BUILD_NUMBER} etc, which can be accessed inside a Pipeline script (both Scripted and Declarative). Although, we can use these variables directly, I would like to know whether these are a part of an Array varia

Re: Accessing Special Built-In Jenkins Variables List

2020-12-16 Thread Ven H
Although, we can get it using the env.getEnvironment() array, but it doesn't have ${WORKSPACE} variable. Regards, Venkatesh On Wed, Dec 16, 2020 at 6:16 PM Ven H wrote: > Hi, > > We have special Built-In Jenkins Variables for a Job like ${JOB_NAME}, > ${JOB_URL}, ${BUILD_N

Re: Accessing Special Built-In Jenkins Variables List

2020-12-16 Thread Ven H
And other variables like ${NODE_NAME} are also not available through *env* global variables. Regards, Venkatesh On Wed, Dec 16, 2020 at 6:28 PM Ven H wrote: > Although, we can get it using the env.getEnvironment() array, but it > doesn't have ${WORKSPACE} variable. > > Reg

Re: Jenkinsfile Accessing variables from shared libraries

2020-12-17 Thread Ven H
In my case, I do the following. I have a GlobalVars.groovy file with below content. #!/usr/bin/env groovypackage com..;public class GlobalVars { static String myVar = ""} Then in my Shared Library class, I use it like below. GlobalVars.myVar = "" Try it like this and check. Here, I have decla

Choice Parameter from Shared LIbrary Step

2020-12-18 Thread Ven H
Is it possible to populate a Choice parameter values (choices) with values retrieved from a Shared Library Step? Please help. Regards, Venkatesh -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving

Re: Choice Parameter from Shared LIbrary Step

2020-12-18 Thread Ven H
ine > library. > > Eg) > Jenkinsfile: > > choice_list=["choice1", "choice2", choice3"] > properties([ > > > parameters([ > > > choice(name: 'mychoiceparam', choices:choice_list, > description: &#

Re: Choice Parameter from Shared LIbrary Step

2020-12-18 Thread Ven H
of the library step. > > I don't know what library step you are using so cannot provide specific > example. > > On Sat, Dec 19, 2020, 12:59 AM Ven H wrote: > >> Thanks a lot, Senthil. Can it be a Shared Library Step or a Class method >> only?. It will be g

Re: Choice Parameter from Shared LIbrary Step

2020-12-22 Thread Ven H
Can anyone please help? Regards, Venkatesh On Sat, Dec 19, 2020 at 11:13 AM Ven H wrote: > Let's say I have the following use case. I have 3 choice parameters, > namely, Country, State, City. I have shared library steps to GetCountries, > then GetStates with country as arg

.svn folder getting checked out

2020-12-24 Thread Ven H
I have a pipeline script in Jenkinsfile which is in SVN. It has the following checkout step. *checkout([$class: 'SubversionSCM', filterChangelog: false, ignoreDirPropChanges: false, locations: [[cancelProcessOnExternalsFail: true, credentialsId: "", depthOption: 'infinity', ignoreExternalsOption:

Re: .svn folder getting checked out

2020-12-25 Thread Ven H
tter behavior described above, maybe > your agent is having a pre-1.7 svn binaries? > > PS : we don't use the term 'slave' anymore for agents since 2016. And > master got replaced by controller earlier this year. > Thanks. > > > Le jeu. 24 déc. 2020 à 19:27

Re: .svn folder getting checked out

2020-12-26 Thread Ven H
root >>> of the checked out repo. >>> Before svn 1.7 it was literally in all directories. >>> >>> This is expected. >>> >>> If you're surprised more by the latter behavior described above, maybe >>> your agent is having a pre-1.7

Re: .svn folder getting checked out

2020-12-27 Thread Ven H
; You're the one best positioned to check 😉 > > Le sam. 26 déc. 2020 à 17:07, Ven H a écrit : > >> I am pretty sure, it didn't create those folders in the old instance. We >> still have the old instance running since we are in the process of >> transitioning.

Re: how can I get the value of a global variable within a function in a pipeline?

2021-02-11 Thread Ven H
Try defining it inside the "environment" stage / step. Regards, Venkatesh On Thu, Feb 11, 2021 at 11:26 PM jesus fernandez < jesusfernandez0...@gmail.com> wrote: > > I have a declarative pipeline with a few steps. at the end I send a message > to slack with some statistics of the compilation t

Re: how can I get the value of a global variable within a function in a pipeline?

2021-02-11 Thread Ven H
https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables Regards, Venkatesh On Thu, Feb 11, 2021 at 11:44 PM jesus fernandez < jesusfernandez0...@gmail.com> wrote: > Thanks for replying, any example or any link where to get information > about how to do so? I am a bit n

Exclude Paths from Triggering Builds

2021-02-12 Thread Ven H
I have a repository in GitHub. This repository has a Jenkinsfile at the root which is the app project. There are 2 more folders / directories, one for Config project and one for Database project. Each has a jenkins file inside it. We have 3 Multibranch Jenkins Pipelines, since there are 3 differen

Git Exclude Region in Multibranch Pipeline Job Not working

2021-02-15 Thread Ven H
I have a GitHub repository and a multi-branch pipeline job. I am trying to exclude some paths from triggering builds, but can't get it to work. Any help would be appreciated. Here are the details. GitHub URL: https://github.com//.git The project has App, DB and Config. DB and Config folders are i

Re: Git Exclude Region in Multibranch Pipeline Job Not working

2021-02-16 Thread Ven H
gt; > Those strategies provide a higher level implementation for multibranch > pipelines. The higher level implementation can work for multiple SCM > providers. > > Mark Waite > > On Mon, Feb 15, 2021 at 5:02 AM Ven H wrote: > >> I have a GitHub repository and a multi-bran

Re: Git Exclude Region in Multibranch Pipeline Job Not working

2021-02-17 Thread Ven H
Can anyone please help me? Regards, Venkatesh On Tue, Feb 16, 2021 at 5:22 PM Ven H wrote: > Thank you very much for your reply, Mark. Unfortunately, that is also not > working for me. Can you please provide some samples? I can see from the > Plugin documentation that it is exclu

Cancel Build Excluded Regions Strategy not working

2021-03-08 Thread Ven H
I have a Jenkins controller version: 2.257. Basic Branch Build Strategy plugin version: 1.3.2. I have a GitHub repository which has App, DB and Config modules. App is at root. DB and Config modules are inside db and config folders respectively. Jenkinsfile is present at root for App and inside db

Re: Cancel Build Excluded Regions Strategy not working

2021-03-10 Thread Ven H
Has anyone faced this issue? If yes, please help. On Mon, Mar 8, 2021 at 9:02 PM Ven H wrote: > I have a Jenkins controller version: 2.257. Basic Branch Build Strategy > plugin version: 1.3.2. > > I have a GitHub repository which has App, DB and Config modules. App is at > root

Suddenly Many plugins are throwing errors

2021-04-16 Thread Ven H
I have a Jenkins Controller (Master) running as a docker container in a Linux Host. Everything was working fine until yesterday night. Today, suddenly many plugins are throwing errors. Not sure what is wrong. Although Jenkins is up and running, many plugins are failing to load all of a sudden. Can

Re: Suddenly Many plugins are throwing errors

2021-04-16 Thread Ven H
We fixed the issue. We installed the plugins which were throwing errors, one by one and restarted Jenkins. On Fri, Apr 16, 2021 at 12:35 PM Ven H wrote: > I have a Jenkins Controller (Master) running as a docker container in a > Linux Host. Everything was working fine until yesterday