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 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 anyone please help? A sample error is like this. When I go to
> installed plugins, I get the below error. There are many errors like below
> for many plugins. Any help would be appreciated.
>
> Failed to load: Jenkins Artifactory Plugin (3.10.3)
>  - Failed to load: Maven Integration plugin (3.8)
>
>

-- 
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/CAPp28eqZqxc9z%3Dt20f8DMVy5XXN2Ak0%2B-wNUhrg6VWPob%3DG3pw%40mail.gmail.com.


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 anyone please help? A sample error is like this. When I go to
installed plugins, I get the below error. There are many errors like below
for many plugins. Any help would be appreciated.

Failed to load: Jenkins Artifactory Plugin (3.10.3)
 - Failed to load: Maven Integration plugin (3.8)

-- 
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/CAPp28epsuUQvSHrJ%3D2hbxBfchLkXBEBxhFZfPn%2BHj4_wm-D51g%40mail.gmail.com.


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. DB and Config modules are inside db and config folders respectively.
>
> Jenkinsfile is present at root for App and inside db and config folders
> for the corresponding modules.
>
> Multibranch jobs have been created for App, DB and config. Even if I
> modify any file inside the DB folder, it is triggering an App build. In the
> App job configuration, I have Build Strategy to exclude the DB path from
> triggering build, but it is not working.
>
> Can anyone please help me with this? I am not sure what part of the path
> should I provide (I mean relative to the organization URL in GitHub).
>
>

-- 
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/CAPp28eqHgEq3We3PUYgkib1MTYxSQL4UFdmzO5rxSdOk8H495A%40mail.gmail.com.


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 and config folders for
the corresponding modules.

Multibranch jobs have been created for App, DB and config. Even if I modify
any file inside the DB folder, it is triggering an App build. In the App
job configuration, I have Build Strategy to exclude the DB path from
triggering build, but it is not working.

Can anyone please help me with this? I am not sure what part of the path
should I provide (I mean relative to the organization URL in GitHub).

-- 
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/CAPp28eoBdOYnqZ6WB1wd8OM%2BCLVuo7YJSteFAf8oDfWRPhyD%2BA%40mail.gmail.com.


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 excluding some files. However, I would like
> to exclude folders / directories. Say for example, if I have a GitHub
> repository like below.
>
> https://github.com/org-name/project-name.git
>
> The App project is at the root level and has a Jenkinsfile and an
> associated multibranch pipeline job in Jenkins.
> I have a db directory at project-name/db path. Here also, I have a
> Jenkinsfile and an associated multibranch pipeline job in Jenkins.
>
> I tried with the following path combinations in the App build multibranch
> pipeline configuration (cancel build excluded regions strategy) to exclude
> any changes in the db folder / directory from triggering an App build.
>
> project-name/db
> project-name/db/.*
> project-name/db/**/*
> project-name/db/**/.*
> db
> db/.*
> db/**/*
> db/**/.*
>
> None of the above works. Please help.
>
> Regards,
> Venkatesh
>
>
> On Mon, Feb 15, 2021 at 9:10 PM Mark Waite 
> wrote:
>
>> The git plugin provides some capabilities that are used in Freestyle
>> projects but are not usable or are not the best choice when using a
>> multibranch pipeline.  Path restrictions is one of those capabilities.
>> Rather than using the path restrictions from inside the checkout step in
>> the Jenkinsfile, you'll need to use the Pipeline: Multibranch build
>> strategy plugin
>> <https://plugins.jenkins.io/multibranch-build-strategy-extension/>.
>>
>> If you need to ignore changes by specific authors, you'll need to use the 
>> Ignore
>> committer strategy plugin
>> <https://plugins.jenkins.io/ignore-committer-strategy/> rather than
>> using the git plugin facility that is similar.
>>
>> 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-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 inside the
>>> App. App is at the root level. There are 3 multibranch jobs and 3
>>> Jenkinsfile at the following paths.
>>>
>>> /Jenkinsfile
>>> /db/Jenkinsfile
>>> /config/Jenkinsfile
>>>
>>> Requirement is to ensure that a change in a file inside DB directory
>>> shouldn't trigger a build for App. PFB the checkout step in the App
>>> Jenkinsfile.
>>>
>>> checkout([
>>> $class: 'GitSCM',
>>> branches: [[name: "*/${BRANCH_NAME}"]],
>>> doGenerateSubmoduleConfigurations: false,
>>> extensions: [[$class: 'DisableRemotePoll'],[$class: 'PathRestriction',
>>> excludedRegions: '/db/.*', includedRegions: ''],
>>> [$class: 'RelativeTargetDirectory', relativeTargetDir: "
>>> "]
>>> ],
>>> gitTool: "",
>>> submoduleCfg: [],
>>> userRemoteConfigs: [
>>> [
>>> credentialsId: "",
>>> url: "https://github.com//.git"
>>> ]
>>> ]
>>> ])
>>>
>>> I have tried various combinations for excludedRegions like below. I
>>> tried generating the above syntax using the Pipeline Syntax with the option
>>> "Polling ignores commits in certain paths"
>>>
>>> 1. /db/.*
>>> 2. /db/**/*
>>> 3. db/.*
>>> 4. db/**/*
>>> 5. With and without "includedRegions"
>>> 6. With and without DisableRemotePoll (Force Polling using Workspace)
>>>
>>> None of the above seems to be working. Can anyone please help me with
>>> this?
>>>
>>> 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 emails from it, send
>>> an email to jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.g

Re: Git Exclude Region in Multibranch Pipeline Job Not working

2021-02-16 Thread Ven H
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 excluding some files. However, I would like
to exclude folders / directories. Say for example, if I have a GitHub
repository like below.

https://github.com/org-name/project-name.git

The App project is at the root level and has a Jenkinsfile and an
associated multibranch pipeline job in Jenkins.
I have a db directory at project-name/db path. Here also, I have a
Jenkinsfile and an associated multibranch pipeline job in Jenkins.

I tried with the following path combinations in the App build multibranch
pipeline configuration (cancel build excluded regions strategy) to exclude
any changes in the db folder / directory from triggering an App build.

project-name/db
project-name/db/.*
project-name/db/**/*
project-name/db/**/.*
db
db/.*
db/**/*
db/**/.*

None of the above works. Please help.

Regards,
Venkatesh


On Mon, Feb 15, 2021 at 9:10 PM Mark Waite 
wrote:

> The git plugin provides some capabilities that are used in Freestyle
> projects but are not usable or are not the best choice when using a
> multibranch pipeline.  Path restrictions is one of those capabilities.
> Rather than using the path restrictions from inside the checkout step in
> the Jenkinsfile, you'll need to use the Pipeline: Multibranch build
> strategy plugin
> <https://plugins.jenkins.io/multibranch-build-strategy-extension/>.
>
> If you need to ignore changes by specific authors, you'll need to use the 
> Ignore
> committer strategy plugin
> <https://plugins.jenkins.io/ignore-committer-strategy/> rather than using
> the git plugin facility that is similar.
>
> 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-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 inside the
>> App. App is at the root level. There are 3 multibranch jobs and 3
>> Jenkinsfile at the following paths.
>>
>> /Jenkinsfile
>> /db/Jenkinsfile
>> /config/Jenkinsfile
>>
>> Requirement is to ensure that a change in a file inside DB directory
>> shouldn't trigger a build for App. PFB the checkout step in the App
>> Jenkinsfile.
>>
>> checkout([
>> $class: 'GitSCM',
>> branches: [[name: "*/${BRANCH_NAME}"]],
>> doGenerateSubmoduleConfigurations: false,
>> extensions: [[$class: 'DisableRemotePoll'],[$class: 'PathRestriction',
>> excludedRegions: '/db/.*', includedRegions: ''],
>> [$class: 'RelativeTargetDirectory', relativeTargetDir: ""
>> ]
>> ],
>> gitTool: "",
>> submoduleCfg: [],
>> userRemoteConfigs: [
>> [
>> credentialsId: "",
>> url: "https://github.com//.git"
>> ]
>> ]
>> ])
>>
>> I have tried various combinations for excludedRegions like below. I tried
>> generating the above syntax using the Pipeline Syntax with the option
>> "Polling ignores commits in certain paths"
>>
>> 1. /db/.*
>> 2. /db/**/*
>> 3. db/.*
>> 4. db/**/*
>> 5. With and without "includedRegions"
>> 6. With and without DisableRemotePoll (Force Polling using Workspace)
>>
>> None of the above seems to be working. Can anyone please help me with
>> this?
>>
>> 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 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/CAPp28eoqYt2Z2VptVZG2Pi0qF%2BT01e7XeHWfDh5eXAeTiFMcyg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28eoqYt2Z2VptVZG2Pi0qF%2BT01e7XeHWfDh5eXAeTiFMcyg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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

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 inside the
App. App is at the root level. There are 3 multibranch jobs and 3
Jenkinsfile at the following paths.

/Jenkinsfile
/db/Jenkinsfile
/config/Jenkinsfile

Requirement is to ensure that a change in a file inside DB directory
shouldn't trigger a build for App. PFB the checkout step in the App
Jenkinsfile.

checkout([
$class: 'GitSCM',
branches: [[name: "*/${BRANCH_NAME}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'DisableRemotePoll'],[$class: 'PathRestriction',
excludedRegions: '/db/.*', includedRegions: ''],
[$class: 'RelativeTargetDirectory', relativeTargetDir: ""]
],
gitTool: "",
submoduleCfg: [],
userRemoteConfigs: [
[
credentialsId: "",
url: "https://github.com//.git"
]
]
])

I have tried various combinations for excludedRegions like below. I tried
generating the above syntax using the Pipeline Syntax with the option
"Polling ignores commits in certain paths"

1. /db/.*
2. /db/**/*
3. db/.*
4. db/**/*
5. With and without "includedRegions"
6. With and without DisableRemotePoll (Force Polling using Workspace)

None of the above seems to be working. Can anyone please help me with this?

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 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/CAPp28eoqYt2Z2VptVZG2Pi0qF%2BT01e7XeHWfDh5eXAeTiFMcyg%40mail.gmail.com.


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
different modules / projects. But all of them belong to the same GitHub
repository. The challenge is that, if the DB developer modifies any file
inside the DB directory, other jobs are also triggered (App and Config). If
a file is changed in the Config directory, it triggers App and DB jobs,
probably because all are inside the same repository.

Is there a way to ensure that any change in DB directory will only trigger
the DB Multibranch job and not the App and Config and vice versa?
Basically, I am looking for an option to exclude DB and Config directory
from triggering App Build and so on. 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 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/CAPp28er63DJce_-%2Be8c8_S_H2qd07cr20ZEndS8HYZfRgAc2%2Bg%40mail.gmail.com.


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 new to Jenkins
>
> El jueves, 11 de febrero de 2021 a las 19:11:24 UTC+1, venh...@gmail.com
> escribió:
>
>> Try defining it inside the "environment" stage / step.
>>
>> Regards,
>> Venkatesh
>>
>>
>> On Thu, Feb 11, 2021 at 11:26 PM jesus fernandez 
>> 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 times and some more 
>>> information. I want to send in case it fails the stage at which it fails. I 
>>> have set a global variable but the function does not seem to be able to 
>>> read its value. This is a simplified version of what I have:
>>>
>>> ```
>>> def FAILED_STAGE
>>>
>>> def sendSlackNotifcation()
>>> {
>>> if ( currentBuild.currentResult == "SUCCESS" ) {
>>>
>>> slackSend message: "${currentBuild.result}", channel: 
>>> '#jenkins_bot2'
>>> }
>>>
>>> else {
>>>
>>> slackSend color : "#FF", message: "${FAILED_STAGE}", channel: 
>>> '#jenkins_bot2'
>>>
>>> }
>>> }
>>>
>>> pipeline {
>>> agent any
>>>
>>> stages {
>>> stage('stage1') {
>>> steps{
>>> echo "stage1"
>>> }
>>> }
>>>
>>> stage('stage2') {
>>> steps{
>>> echo "stage2"
>>> }
>>> }
>>>
>>> stage("Stage 3") {
>>> steps {
>>> script {
>>> FAILED_STAGE=env.STAGE_NAME
>>> echo "${FAILED_STAGE}"
>>> error "failed for some reason."
>>> }
>>> }
>>> }
>>> }
>>> post {
>>> failure {
>>> sendSlackNotifcation()
>>> }
>>> }
>>>
>>> }
>>> ```
>>> And this is the output I get:
>>> ```
>>> 13:38:53  [Pipeline] {
>>> 13:38:53  [Pipeline] stage
>>> 13:38:53  [Pipeline] { (stage1)
>>> 13:38:53  [Pipeline] echo
>>> 13:38:53  stage1
>>> 13:38:53  [Pipeline] }
>>> 13:38:53  [Pipeline] // stage
>>> 13:38:53  [Pipeline] stage
>>> 13:38:53  [Pipeline] { (stage2)
>>> 13:38:53  [Pipeline] echo
>>> 13:38:53  stage2
>>> 13:38:53  [Pipeline] }
>>> 13:38:53  [Pipeline] // stage
>>> 13:38:53  [Pipeline] stage
>>> 13:38:53  [Pipeline] { (Stage 3)
>>> 13:38:53  [Pipeline] script
>>> 13:38:53  [Pipeline] {
>>> 13:38:53  [Pipeline] echo
>>> 13:38:53  Stage 3
>>> 13:38:53  [Pipeline] error
>>> 13:38:53  [Pipeline] }
>>> 13:38:53  [Pipeline] // script
>>> 13:38:53  [Pipeline] }
>>> 13:38:53  [Pipeline] // stage
>>> 13:38:53  [Pipeline] stage
>>> 13:38:53  [Pipeline] { (Declarative: Post Actions)
>>> 13:38:53  Error when executing failure post condition:
>>>
>>> 13:38:53  groovy.lang.MissingPropertyException: No such property: 
>>> FAILED_STAGE for class: WorkflowScript
>>> ```
>>>
>>> --
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/91e7dbcd-c806-4d55-bc31-bc9a9ad4057cn%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/f2756185-f00c-4bf8-a382-f7659da29ca6n%40googlegroups.com
> 
> .
>

-- 
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/CAPp28epL%2BCgm8yvzX0qNMNZbQ0Odxj5xaRsgJz73i40pQ5tRwg%40mail.gmail.com.


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 times and some more 
> information. I want to send in case it fails the stage at which it fails. I 
> have set a global variable but the function does not seem to be able to read 
> its value. This is a simplified version of what I have:
>
> ```
> def FAILED_STAGE
>
> def sendSlackNotifcation()
> {
> if ( currentBuild.currentResult == "SUCCESS" ) {
>
> slackSend message: "${currentBuild.result}", channel: '#jenkins_bot2'
> }
>
> else {
>
> slackSend color : "#FF", message: "${FAILED_STAGE}", channel: 
> '#jenkins_bot2'
>
> }
> }
>
> pipeline {
> agent any
>
> stages {
> stage('stage1') {
> steps{
> echo "stage1"
> }
> }
>
> stage('stage2') {
> steps{
> echo "stage2"
> }
> }
>
> stage("Stage 3") {
> steps {
> script {
> FAILED_STAGE=env.STAGE_NAME
> echo "${FAILED_STAGE}"
> error "failed for some reason."
> }
> }
> }
> }
> post {
> failure {
> sendSlackNotifcation()
> }
> }
>
> }
> ```
> And this is the output I get:
> ```
> 13:38:53  [Pipeline] {
> 13:38:53  [Pipeline] stage
> 13:38:53  [Pipeline] { (stage1)
> 13:38:53  [Pipeline] echo
> 13:38:53  stage1
> 13:38:53  [Pipeline] }
> 13:38:53  [Pipeline] // stage
> 13:38:53  [Pipeline] stage
> 13:38:53  [Pipeline] { (stage2)
> 13:38:53  [Pipeline] echo
> 13:38:53  stage2
> 13:38:53  [Pipeline] }
> 13:38:53  [Pipeline] // stage
> 13:38:53  [Pipeline] stage
> 13:38:53  [Pipeline] { (Stage 3)
> 13:38:53  [Pipeline] script
> 13:38:53  [Pipeline] {
> 13:38:53  [Pipeline] echo
> 13:38:53  Stage 3
> 13:38:53  [Pipeline] error
> 13:38:53  [Pipeline] }
> 13:38:53  [Pipeline] // script
> 13:38:53  [Pipeline] }
> 13:38:53  [Pipeline] // stage
> 13:38:53  [Pipeline] stage
> 13:38:53  [Pipeline] { (Declarative: Post Actions)
> 13:38:53  Error when executing failure post condition:
>
> 13:38:53  groovy.lang.MissingPropertyException: No such property: 
> FAILED_STAGE for class: WorkflowScript
> ```
>
> --
> 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/91e7dbcd-c806-4d55-bc31-bc9a9ad4057cn%40googlegroups.com
> 
> .
>

-- 
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/CAPp28eqF44WGYh0b-61Eji_TyTrceyvqp78ti4o%3Dx7i-eEmOjQ%40mail.gmail.com.


Re: .svn folder getting checked out

2020-12-27 Thread Ven H
Thanks a lot for your response. PFB the details below.

Server / Software Old New
Jenkins 2.163 2.257
Jenkins Controller Windows Server 2012 R2 Ubuntu 18.04.3
Jenkins Agent Windows Server 2019 Standard Windows Server 2019 Standard
SVN Version 1.6.2 1.6.2

Regards,
Venkatesh


On Sat, Dec 26, 2020 at 11:40 PM Baptiste Mathus  wrote:

> On Windows or Linux?
>
> On Linux it will require ls -a to show them.
>
> Please check and provide svn versions and OS on various cases.
>
> Or possibly, you've been using 'svn export' in some cases. I don't know.
> 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. I don't see those folders there. That's why I raised this
>> query.
>>
>> Regards,
>> Venkatesh
>>
>>
>> On Sat, Dec 26, 2020 at 12:48 AM 'Martin Schmude' via Jenkins Users <
>> jenkinsci-users@googlegroups.com> wrote:
>>
>>> SVN does not download .svn folders, it creates them while performing a
>>> checkout.
>>> The .svn folders are documented in:
>>> http://svnbook.red-bean.com/en/1.7/svn-book.html#svn.basic.in-action.wc.
>>> With the older Jenkins instance every SVN checkout must have created a
>>> .svn folder too. Maybe you just didn't take note of them before the switch
>>> to your newer Jenkins instance, for whatever reason.
>>>
>>>
>>> venh...@gmail.com schrieb am Freitag, 25. Dezember 2020 um 18:57:24
>>> UTC+1:
>>>
>>>> Thank you for your response. SVN version has not changed in our case.
>>>> Our controller has changed. It's a newer version of Jenkins. The older
>>>> version was hosted on Windows and the newer version is hosted in a Docker
>>>> container in a Linux environment.
>>>>
>>>> The checkout step in the pipeline didn't download the .svn folders in
>>>> the earlier (or older) Jenkins instance, whereas it is doing it in the
>>>> newer Jenkins instance. SVN has not changed at all. Hope I have explained
>>>> the problem statement correctly.
>>>>
>>>> Regards,
>>>> Venkatesh
>>>>
>>>>
>>>> On Fri, Dec 25, 2020 at 6:23 PM Baptiste Mathus 
>>>> wrote:
>>>>
>>>>> Not sure what exactly you're concerned about:
>>>>>
>>>>> Subversion always had this .svn folder. Since 1.7 it's only at the
>>>>> 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 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, Ven H  a écrit :
>>>>>
>>>>>> 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: true, local: '.', remote: ""]],
>>>>>> quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']])*
>>>>>>
>>>>>> This is working fine in a Jenkins environment (master & slaves)  on
>>>>>> Windows. Now we are moving to a Jenkins master on a Docker container 
>>>>>> hosted
>>>>>> in a Linux environment. The slaves are still Windows servers since the
>>>>>> Application code is in .Net.
>>>>>>
>>>>>> The Source code is in SVN. After moving to the new Jenkins instance,
>>>>>> we are facing a weird issue. The checkout step is somehow getting .svn
>>>>>> folders also downloaded into the workspace, which was not happening in 
>>>>>> the
>>>>>> earlier Jenkins environment. Not sure what is wrong. Can anyone please 
>>>>>> h

Re: .svn folder getting checked out

2020-12-26 Thread Ven H
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. I don't see those folders there. That's why I raised this
query.

Regards,
Venkatesh


On Sat, Dec 26, 2020 at 12:48 AM 'Martin Schmude' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> SVN does not download .svn folders, it creates them while performing a
> checkout.
> The .svn folders are documented in:
> http://svnbook.red-bean.com/en/1.7/svn-book.html#svn.basic.in-action.wc.
> With the older Jenkins instance every SVN checkout must have created a
> .svn folder too. Maybe you just didn't take note of them before the switch
> to your newer Jenkins instance, for whatever reason.
>
>
> venh...@gmail.com schrieb am Freitag, 25. Dezember 2020 um 18:57:24 UTC+1:
>
>> Thank you for your response. SVN version has not changed in our case. Our
>> controller has changed. It's a newer version of Jenkins. The older version
>> was hosted on Windows and the newer version is hosted in a Docker container
>> in a Linux environment.
>>
>> The checkout step in the pipeline didn't download the .svn folders in the
>> earlier (or older) Jenkins instance, whereas it is doing it in the newer
>> Jenkins instance. SVN has not changed at all. Hope I have explained the
>> problem statement correctly.
>>
>> Regards,
>> Venkatesh
>>
>>
>> On Fri, Dec 25, 2020 at 6:23 PM Baptiste Mathus  wrote:
>>
>>> Not sure what exactly you're concerned about:
>>>
>>> Subversion always had this .svn folder. Since 1.7 it's only at the 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 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, Ven H  a écrit :
>>>
>>>> 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: true, local: '.', remote: ""]],
>>>> quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']])*
>>>>
>>>> This is working fine in a Jenkins environment (master & slaves)  on
>>>> Windows. Now we are moving to a Jenkins master on a Docker container hosted
>>>> in a Linux environment. The slaves are still Windows servers since the
>>>> Application code is in .Net.
>>>>
>>>> The Source code is in SVN. After moving to the new Jenkins instance, we
>>>> are facing a weird issue. The checkout step is somehow getting .svn folders
>>>> also downloaded into the workspace, which was not happening in the earlier
>>>> Jenkins environment. Not sure what is wrong. Can anyone 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 emails from it, send
>>>> an email to jenkinsci-use...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/jenkinsci-users/CAPp28epn9bDrJW6deQCtVNh2M8GYr1vvPM9vjevwDGKym%2Bhaug%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28epn9bDrJW6deQCtVNh2M8GYr1vvPM9vjevwDGKym%2Bhaug%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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-use...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS70dOJALP9zbO-ph5RpFm8Ua-17zaKvnRkjS0UyQ58k-A%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS70dOJALP9zbO-p

Re: .svn folder getting checked out

2020-12-25 Thread Ven H
Thank you for your response. SVN version has not changed in our case. Our
controller has changed. It's a newer version of Jenkins. The older version
was hosted on Windows and the newer version is hosted in a Docker container
in a Linux environment.

The checkout step in the pipeline didn't download the .svn folders in the
earlier (or older) Jenkins instance, whereas it is doing it in the newer
Jenkins instance. SVN has not changed at all. Hope I have explained the
problem statement correctly.

Regards,
Venkatesh


On Fri, Dec 25, 2020 at 6:23 PM Baptiste Mathus  wrote:

> Not sure what exactly you're concerned about:
>
> Subversion always had this .svn folder. Since 1.7 it's only at the 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 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, Ven H  a écrit :
>
>> 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: true, local: '.', remote: ""]],
>> quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']])*
>>
>> This is working fine in a Jenkins environment (master & slaves)  on
>> Windows. Now we are moving to a Jenkins master on a Docker container hosted
>> in a Linux environment. The slaves are still Windows servers since the
>> Application code is in .Net.
>>
>> The Source code is in SVN. After moving to the new Jenkins instance, we
>> are facing a weird issue. The checkout step is somehow getting .svn folders
>> also downloaded into the workspace, which was not happening in the earlier
>> Jenkins environment. Not sure what is wrong. Can anyone 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 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/CAPp28epn9bDrJW6deQCtVNh2M8GYr1vvPM9vjevwDGKym%2Bhaug%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28epn9bDrJW6deQCtVNh2M8GYr1vvPM9vjevwDGKym%2Bhaug%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CANWgJS70dOJALP9zbO-ph5RpFm8Ua-17zaKvnRkjS0UyQ58k-A%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS70dOJALP9zbO-ph5RpFm8Ua-17zaKvnRkjS0UyQ58k-A%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAPp28eomhVDM_m6Gw81mQ1F2F_abxueAn1evMNn%2BLa-royP2uQ%40mail.gmail.com.


.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: true, local: '.', remote: ""]],
quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']])*

This is working fine in a Jenkins environment (master & slaves)  on
Windows. Now we are moving to a Jenkins master on a Docker container hosted
in a Linux environment. The slaves are still Windows servers since the
Application code is in .Net.

The Source code is in SVN. After moving to the new Jenkins instance, we are
facing a weird issue. The checkout step is somehow getting .svn folders
also downloaded into the workspace, which was not happening in the earlier
Jenkins environment. Not sure what is wrong. Can anyone 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 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/CAPp28epn9bDrJW6deQCtVNh2M8GYr1vvPM9vjevwDGKym%2Bhaug%40mail.gmail.com.


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 argument and then GetCities with country and
> state as arguments. In my pipeline job, I will have 3 Choice parameters,
> one each for Country, State and City, with a cascading functionality, which
> is, when I select a Country, the states will be populated accordingly and
> upon selection of a state, cities will be populated accordingly.
>
> choice(name: 'Country', description: 'Select Country',
> choices:'GetCountriesFromSharedLibStep')
> choice(name: 'State', description: 'Select State',
> choices:'GetStatesFromSharedLibStep('${params.Country}')
> choice(name: 'City', description: 'Select City',
> choices:'GetCitiesFromSharedLibStep('${params.Country}', '${params.State}'
> )
>
> Has anyone had this kind of a requirement. If so, how to achieve this?
> Please help with some examples / code.
>
> Regards,
> Venkatesh
>
>
> On Sat, Dec 19, 2020 at 1:15 AM Senthil Nathan <
> m.s.senthilnat...@gmail.com> wrote:
>
>> You have to create a list from the return value 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 great, if you can please help with some examples.
>>>
>>> Regards,
>>> Venkatesh
>>>
>>>
>>> On Sat, Dec 19, 2020 at 12:48 AM Senthil Nathan <
>>> m.s.senthilnat...@gmail.com> wrote:
>>>
>>>> Yes. In below example the choice_list can come from a shared pipeline
>>>> library.
>>>>
>>>> Eg)
>>>> Jenkinsfile:
>>>> 
>>>> choice_list=["choice1", "choice2", choice3"]
>>>> properties([
>>>>
>>>>
>>>> parameters([
>>>>
>>>>
>>>>   choice(name: 'mychoiceparam', choices:choice_list,
>>>> description: 'my choices')])
>>>> ])
>>>>
>>>> On Fri, Dec 18, 2020 at 10:53 AM Ven H  wrote:
>>>>
>>>>> 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 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/CAPp28erSn6zVWDG3--wTLgWT%2BGqVPSBWWwfvrNicqH0B3pZYdQ%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28erSn6zVWDG3--wTLgWT%2BGqVPSBWWwfvrNicqH0B3pZYdQ%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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/CAJgiyW_9K9XjVL%2BoJPDhAGsN6eFGGY4BDcg-LECrYEZM%3DCWhkw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAJgiyW_9K9XjVL%2BoJPDhAGsN6eFGGY4BDcg-LECrYEZM%3DCWhkw%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAPp28epAOCv%3DaB2GR-xBpOOWpF%2B5X0zjp20zN5rGiqsaY_Q1_Q%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28epAOCv%3DaB2GR-xBpOOWpF%2B5X0zjp20zN5rGiqs

Re: Choice Parameter from Shared LIbrary Step

2020-12-18 Thread Ven H
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 argument and then GetCities with country and
state as arguments. In my pipeline job, I will have 3 Choice parameters,
one each for Country, State and City, with a cascading functionality, which
is, when I select a Country, the states will be populated accordingly and
upon selection of a state, cities will be populated accordingly.

choice(name: 'Country', description: 'Select Country',
choices:'GetCountriesFromSharedLibStep')
choice(name: 'State', description: 'Select State',
choices:'GetStatesFromSharedLibStep('${params.Country}')
choice(name: 'City', description: 'Select City',
choices:'GetCitiesFromSharedLibStep('${params.Country}', '${params.State}'
)

Has anyone had this kind of a requirement. If so, how to achieve this?
Please help with some examples / code.

Regards,
Venkatesh


On Sat, Dec 19, 2020 at 1:15 AM Senthil Nathan 
wrote:

> You have to create a list from the return value 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 great, if you can please help with some examples.
>>
>> Regards,
>> Venkatesh
>>
>>
>> On Sat, Dec 19, 2020 at 12:48 AM Senthil Nathan <
>> m.s.senthilnat...@gmail.com> wrote:
>>
>>> Yes. In below example the choice_list can come from a shared pipeline
>>> library.
>>>
>>> Eg)
>>> Jenkinsfile:
>>> 
>>> choice_list=["choice1", "choice2", choice3"]
>>> properties([
>>>
>>>
>>> parameters([
>>>
>>>
>>>   choice(name: 'mychoiceparam', choices:choice_list,
>>> description: 'my choices')])
>>> ])
>>>
>>> On Fri, Dec 18, 2020 at 10:53 AM Ven H  wrote:
>>>
>>>> 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 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/CAPp28erSn6zVWDG3--wTLgWT%2BGqVPSBWWwfvrNicqH0B3pZYdQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28erSn6zVWDG3--wTLgWT%2BGqVPSBWWwfvrNicqH0B3pZYdQ%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAJgiyW_9K9XjVL%2BoJPDhAGsN6eFGGY4BDcg-LECrYEZM%3DCWhkw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAJgiyW_9K9XjVL%2BoJPDhAGsN6eFGGY4BDcg-LECrYEZM%3DCWhkw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAPp28epAOCv%3DaB2GR-xBpOOWpF%2B5X0zjp20zN5rGiqsaY_Q1_Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28epAOCv%3DaB2GR-xBpOOWpF%2B5X0zjp20zN5rGiqsaY_Q1_Q%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAJgiyW9zXM51G3mhCgUt3xx3N8z%3Dw0J70ngmRQqO9RmAE%2BZmSQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAJgiyW9zXM51G3mhCgUt3xx3N8z%3Dw0J70ngmRQqO9RmAE%2BZmSQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAPp28eoZYfXiWX9JOLKoTMpJOFtL9ZZSee8Jaen11Cx6CxtriQ%40mail.gmail.com.


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 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/CAPp28erSn6zVWDG3--wTLgWT%2BGqVPSBWWwfvrNicqH0B3pZYdQ%40mail.gmail.com.


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 declared the class as Public
and the variable as static. That's the only difference.


Regards,
Venkatesh


On Thu, Dec 17, 2020 at 12:56 PM Adrian Wyssmann  wrote:

> I see several problem
>
>1. using ' will not expand the parameters is your call should be sh
>"echo ${CustomMessage}"
>2. CustomMessage is declared within the class Vars(), so you cannot
>access it
>
> You could implement a getter an then do something like this "echo
> ${globalVars.getCustomMessage()}"
>
> Maybe others have better ideas...?
> On Thursday, December 17, 2020 at 12:10:19 AM UTC+1 netwar...@gmail.com
> wrote:
>
>> Hello there
>> Maybe this is a very basic question, but am not being able to access a
>> global variable
>> from a shared library from a Jenkinsfile
>>
>> under vars I defined something like this
>>
>> globalVars.groovy
>> class Vars () {
>>
>> def CustomMessage = "This is a new deployment"
>>
>> }
>>
>> from my Jenkinsfile
>>
>> library identifier: 'globalVars@master', \
>>  retriever: modernSCM([$class: 'GitSCMSource', \
>> credentialsId: 'tfsservice', \
>> remote: 'http://myrepo.com', \
>> traits: [gitBranchDiscovery()]])
>>
>>
>> pipeline {
>>
>> stages {
>> stage('Do Some Stuff') {
>>   steps {
>> script {
>>
>>sh 'echo ${CustomMessage}'
>>
>>   }
>> }
>>   }
>> }
>>
>> }
>>
>> But the above returns nothing, what am I doing wrong?
>> Thanks
>> Regards
>>
> --
> 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/099e3aee-dffc-459d-8eb5-d64204effb58n%40googlegroups.com
> 
> .
>

-- 
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/CAPp28eojNNe9xEFtD8rNhxXnY5Z118zrhGLJRVsqSqaL4qiHFA%40mail.gmail.com.


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.
>
> 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_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 variable like env, so that I can use it to loop and get the variables
>> instead of referencing them specifically using their names. I want to use
>> this array inside my pipeline. It will be helpful, if someone can also
>> provide an example. I tried searching a lot and also tried various ways,
>> but couldn't find anything.  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 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/CAPp28epfySdJ_KuHb54VTaGzeMj-9X6FDBqeQp%3Dp%2BQcZBjFXMw%40mail.gmail.com.


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_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 variable like env, so that I can use it to loop and get the variables
> instead of referencing them specifically using their names. I want to use
> this array inside my pipeline. It will be helpful, if someone can also
> provide an example. I tried searching a lot and also tried various ways,
> but couldn't find anything.  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 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/CAPp28erX-njRk0xt6eERcPMteFtLx8%3Dr59Ej6TsNDs_CuFNVcA%40mail.gmail.com.


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 variable like env, so that I can use it to loop and get the variables
instead of referencing them specifically using their names. I want to use
this array inside my pipeline. It will be helpful, if someone can also
provide an example. I tried searching a lot and also tried various ways,
but couldn't find anything.  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 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/CAPp28eqO7yOo1-4C8Rbi%2B-K6XkK%3DvupgTQDW90-sR119zSB19Q%40mail.gmail.com.


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 since it is at the
very beginning, to get some variable values. 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 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/CAPp28eqAKiOCd%2BN5nYnkMCtytQVXCyo1KFg8KJ2Q-mtuWQkENA%40mail.gmail.com.


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 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/CAPp28er6s%3DJYiaZKxbHoJDZAPoqRAQd6sFFrjF%3DnK7cHTxgPCA%40mail.gmail.com.


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
OpenCover and uploaded it to an internal repository and am trying to
download it and extract it to a path and add an environment variable using
the Global Tools Configuration. In a freestyle test job, I configured the
Install Custom Tools. When I run the job, it shows the steps, but nothing
is installed / configured in the slave. Can anyone please guide me how to
do this?

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 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/CAPp28er0mpstHG5-gcCW9Dk99GUQAEg%2Bwm-Ug4odB4WhsMB%2BYg%40mail.gmail.com.


"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
shows "*address not configured yet *" instead of the
configured email. Can anyone please suggest what is missing / wrong?


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 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/CAPp28eqES%3Dry-MD3GAP%3DiB0_hS5Mq6Y2%2Btd5YXV%2BhdXARtARcw%40mail.gmail.com.


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


On Tue, Oct 13, 2020 at 7:48 PM Slide  wrote:

> 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, 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 
>> 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
>>>
>>> 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 .NET Core SDK or for that matter any
>>> command (say MSBuild) is supported by the "bat" step of Jenkinsfile.
>>>
>>> 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 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/CAPp28eqvJyaz_C2G%2Bs2v1V7txGb_tAJoprA6qmUAMRh4Vf%3DQsA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28eqvJyaz_C2G%2Bs2v1V7txGb_tAJoprA6qmUAMRh4Vf%3DQsA%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>>
>>> --
>>> 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/a4c84b6c-57fb-0547-d30d-12c6246c5242%40cd-adapco.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/a4c84b6c-57fb-0547-d30d-12c6246c5242%40cd-adapco.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAPp28erb5GMhpGyZ%3DKPyw%2BCQRPgqy7a%3DK0L900J5PJAwZtqqkA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28erb5GMhpGyZ%3DKPyw%2BCQRPgqy7a%3DK0L900J5PJAwZtqqkA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAPiUgVdxXeFRmnS8ypdp4spPE%3DOkk_8LijVNXnY9rbKnLQ9Pyg%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdxXeFRmnS8ypdp4spPE%3DOkk_8LijVNXnY9rbKnLQ9Pyg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAPp28ephQqaAppSTyM9h9NPzMVBkg0qCeG%3Dy1t1Bcb_SsvKtJQ%40mail.gmail.com.


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  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
>
> 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 .NET Core SDK or for that matter any
> command (say MSBuild) is supported by the "bat" step of Jenkinsfile.
>
> 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 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/CAPp28eqvJyaz_C2G%2Bs2v1V7txGb_tAJoprA6qmUAMRh4Vf%3DQsA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28eqvJyaz_C2G%2Bs2v1V7txGb_tAJoprA6qmUAMRh4Vf%3DQsA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
>
> --
> 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/a4c84b6c-57fb-0547-d30d-12c6246c5242%40cd-adapco.com
> <https://groups.google.com/d/msgid/jenkinsci-users/a4c84b6c-57fb-0547-d30d-12c6246c5242%40cd-adapco.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAPp28erb5GMhpGyZ%3DKPyw%2BCQRPgqy7a%3DK0L900J5PJAwZtqqkA%40mail.gmail.com.


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 .NET Core SDK or for that matter any
command (say MSBuild) is supported by the "bat" step of Jenkinsfile.

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 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/CAPp28eqvJyaz_C2G%2Bs2v1V7txGb_tAJoprA6qmUAMRh4Vf%3DQsA%40mail.gmail.com.


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 the same version as the old? Do both have
> the same version of the SVN plugin installed? also around that error should
> be a stack trace that gives the real issue, that message is generic.
>
> El lunes, 12 de octubre de 2020 a las 14:53:34 UTC+2, venh...@gmail.com
> escribió:
>
>> 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 the
>> slaves will still be Windows servers. The application source code is in SVN.
>>
>> After moving to the new Jenkins instance (we still have the old one
>> also), we are facing an issue with Multibranch pipeline. The issue is "ERROR:
>> Subversion checkout has been canceled". I am not able to understand the
>> root cause. Can anyone 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 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/d749fd70-2e16-44a3-b6ee-f76903a9ffadn%40googlegroups.com
> 
> .
>

-- 
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/CAPp28eoi65nV3oQ17emeW6xRurBB%2BdRRyFK5ibROJcxw2APMXw%40mail.gmail.com.


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 the
slaves will still be Windows servers. The application source code is in SVN.

After moving to the new Jenkins instance (we still have the old one also),
we are facing an issue with Multibranch pipeline. The issue is "ERROR:
Subversion checkout has been canceled". I am not able to understand the
root cause. Can anyone 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 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/CAPp28erWM3ez5oydVuEJ3CwXv-f-4ckuVkTX8mP8qo8Tuu2Mfg%40mail.gmail.com.


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. Please help.

 parameters {
validatingString(name: "test", defaultValue: "", regex:
/^(?!\s*$).+/, failedValidationMessage: "Validation failed!", description:
"test desc")
}


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 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/CAPp28eqnniCUcuEp6Vj_FbPx2XX4L9sWE49q2VEdM5xsV0xmag%40mail.gmail.com.


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 calls.
>
> 2. Some choice parameters need to be populated from method calls, but
> based on the selection of some other choice parameters. For example, let's
> say, my first choice parameter is the list of countries, which is populated
> from a method call. Once a country is selected, the states will have to be
> populated based on that, as another choice parameter and so on.
>
> 3. I need to validate parameters. For example, if a string parameter is
> empty, I should enforce the user to enter a value and not allow a
> submission without it.
>
> If anyone can help with some references and examples, it will be really
> great.
>
>
> 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 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/CAPp28erubHjb6vZe8u%2BydHwp_7B5znQ_JpEpkPpffBSyOzYWcg%40mail.gmail.com.


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. For example, let's say,
my first choice parameter is the list of countries, which is populated from
a method call. Once a country is selected, the states will have to be
populated based on that, as another choice parameter and so on.

3. I need to validate parameters. For example, if a string parameter is
empty, I should enforce the user to enter a value and not allow a
submission without it.

If anyone can help with some references and examples, it will be really
great.


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 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/CAPp28epijA30%3D1JOqLy4iQsBQ_jrD6iockNyjrcAbNyGLrM2%3Dw%40mail.gmail.com.


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, 2020 at 2:51:47 AM UTC-4 venh...@gmail.com
>> wrote:
>>
>>> 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 pipelines
 https://www.jenkins.io/doc/book/pipeline/shared-libraries/

 For example, I can have the following files
 /path/src/com/company/deployment/script1.groovy
 /path/src/com/company/deployment/script2.groovy

 Now I want both scripts to refer to a common object in
 /path/src/com/company/deployment/common.groovy

 For example

 common.groovy
 package com.company.deployment.common
 class MyClass {
 }

 script1.groovy
 package com.company.deployment
 import com.company.deployment.common
 MyClass mc = new MyClass()

 scrpt2.groovy
 package com.company.deployment
 import com.company.deployment.common
 MyClass mc = new MyClass()

 But I get the following with I try to run either script1 or script2
 unable to resolve class MyClass

 What else do I need to do?
 On Thursday, September 17, 2020 at 3:22:46 PM UTC-4 zil...@gmail.com
 wrote:

> I use this extensibly in my pipelines
> https://www.jenkins.io/doc/book/pipeline/shared-libraries/
>
> For example, I can have the following files
> /path/src/com/company/deployment/script1.groovy
> /path/src/com/company/deployment/script2.groovy
>
> Now I want both scripts to refer to a common object in
> /path/src/com/company/deployment/common.groovy
>
> For example
>
> common.groovy
> package com.company.deployment.common
> class MyClass {
> }
>
> script1.groovy
> package com.company.deployment
> import com.company.deployment.common
> MyClass mc = new MyClass()
>
> scrpt2.groovy
> package com.company.deployment
> import com.company.deployment.common
> MyClass mc = new MyClass()
>
>
> --
 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-use...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/172ca56b-24a7-4e3a-bf37-1aa153793ddan%40googlegroups.com
 
 .

>>> --
> 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/8db848ac-d650-4deb-ad1a-b25b42b1f979n%40googlegroups.com
> 
> .
>

-- 
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/CAPp28eq%2BQGdscPCb0EaBP0DQSny0UHJz8Qd04Xo8a0Mn5crkzA%40mail.gmail.com.


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

2020-09-18 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 pipelines
> https://www.jenkins.io/doc/book/pipeline/shared-libraries/
>
> For example, I can have the following files
> /path/src/com/company/deployment/script1.groovy
> /path/src/com/company/deployment/script2.groovy
>
> Now I want both scripts to refer to a common object in
> /path/src/com/company/deployment/common.groovy
>
> For example
>
> common.groovy
> package com.company.deployment.common
> class MyClass {
> }
>
> script1.groovy
> package com.company.deployment
> import com.company.deployment.common
> MyClass mc = new MyClass()
>
> scrpt2.groovy
> package com.company.deployment
> import com.company.deployment.common
> MyClass mc = new MyClass()
>
> But I get the following with I try to run either script1 or script2
> unable to resolve class MyClass
>
> What else do I need to do?
> On Thursday, September 17, 2020 at 3:22:46 PM UTC-4 zil...@gmail.com
> wrote:
>
>> I use this extensibly in my pipelines
>> https://www.jenkins.io/doc/book/pipeline/shared-libraries/
>>
>> For example, I can have the following files
>> /path/src/com/company/deployment/script1.groovy
>> /path/src/com/company/deployment/script2.groovy
>>
>> Now I want both scripts to refer to a common object in
>> /path/src/com/company/deployment/common.groovy
>>
>> For example
>>
>> common.groovy
>> package com.company.deployment.common
>> class MyClass {
>> }
>>
>> script1.groovy
>> package com.company.deployment
>> import com.company.deployment.common
>> MyClass mc = new MyClass()
>>
>> scrpt2.groovy
>> package com.company.deployment
>> import com.company.deployment.common
>> MyClass mc = new MyClass()
>>
>>
>> --
> 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/172ca56b-24a7-4e3a-bf37-1aa153793ddan%40googlegroups.com
> 
> .
>

-- 
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/CAPp28epi%2B8G0nn5zJfveu0-ayd6U8X87_5MekTWveYSux%3DE91g%40mail.gmail.com.


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 a regular expression
instead of direct and / wild card paths. I tried specifying it, but it's
not working. Does it (regular expression) work only for Git and not for SVN?

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 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/CAPp28eq3vOSgp7zhN0HrqoEG6yD9SuD%2BTkRP7FD4st_Dsthp1g%40mail.gmail.com.


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 help you:
>
>- Job A will wait for both job B and job C to be finished
>- and only if both were successful, then and only then continue with
>triggering job D in the next stage
>
>
>
> HTH Reinhold
>
>
>
>
>
> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *chenna kesavulu
> *Sent:* Dienstag, 1. September 2020 22:23
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: one downstream with multiple upstreams(all upstreams
> should be success)
>
>
>
> Hi Gianluca,
>
>
>
> I can't trigger Job D directly from Job A. Actually in my project we are
> running integration tests in Job B and UI tests in Job C. So if both the
> builds are green then only  i can merge the code to master in Job D. But
> thanks for your answer I will try it.
>
>
>
> Thanks,
>
> Keshav.
>
>
>
>
>
> On Wed, Sep 2, 2020 at 1:26 AM Gianluca  wrote:
>
> Hi,
>
> why not triggering Job D directly from job A ? In this way, if you put
> that in a stage after job B and job C is triggered ... it will only be
> triggered if both succedded:
>
>
>
> stage("Run B and C") {
>
>   steps {
>
> parallel(
>
>   "job B": { buildJob ... },
>
>   "job C:" { build Job ... },
>
> }
>
>
>
> stage("Run D") {
>
>   steps {
>
>// this will run only if both Job B and C succeed
>
> buildJob
>   }
>
> }
>
>
>
> Cheers,
>
> Gianluca.
>
>
>
> Il giorno martedì 1 settembre 2020 alle 19:52:49 UTC+1 chenna keshav ha
> scritto:
>
> Hi,
>
>
>
> i have stuck with a small issue... i have a job A which triggers job B and
> job C. for job B and job C downstream job is job D i need this job D is
> to be triggered when job B and job C both are success. i have tried with
> "Build after other projects are build" with "trigger only if build is
> stable" option. its not working for me... the job is getting triggered even
> one of jobs is success. can some one please help me on this..
>
>
>
> Thanks,
>
> Keshav.
>
> --
> 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/d4839902-97c8-4eb5-baa2-a080a400cfdbn%40googlegroups.com
> 
> .
>
> --
> 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/CABgMPaGxNu_fgFgFytBvZ72vZBKoLBqwj7XEN%3DzaQBMGW1%2BKYw%40mail.gmail.com
> 
> .
>
> --
> 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/DBAPR01MB6631ABF8C17E930FD2B78295F72F0%40DBAPR01MB6631.eurprd01.prod.exchangelabs.com
> 
> .
>

-- 
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/CAPp28eo%2B3V8mFqSwTekqiN80ziigh5_6p8mwweQd%2BVbtDE3SRA%40mail.gmail.com.


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 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: '*.*SubFolder1.**',
> filterChangelog: false, ignoreDirPropChanges: true, locations:
> [[cancelProcessOnExternalsFail: true, credentialsId: 'MyCredential_ID',
> depthOption: 'infinity', ignoreExternalsOption: true, local: '.', remote:
> "${SRC_SVN_URL}"]], quietOperation: true, workspaceUpdater: [$class:
> 'UpdateUpdater']])
>
> If you carefully observe, it is a very subtle but important format. You
> have to give it in the format *.*FolderName.* *. There are no slashes or
> prefixes other than *.** and postfixes other than *.** and no need of
> giving full or relative path, but just the folder name with .* prefix and
> postfix, that's it. Thanks to the link
> http://jenkins-ci.361315.n4.nabble.com/Exclude-folder-in-subversion-from-triggering-new-builds-td2993203.html
>
> However, now the challenge is to exclude multiple paths. As per the
> documentation for ExcludedRegions, every path (folder) should be in a
> newline. I am not sure how to specify that in the checkout step. I tried
> various ways, but no luck yet. If someone can please help me, it will be
> great.
>
> Regards,
> Venkatesh
>
>
> On Mon, Aug 24, 2020 at 10:54 PM Fabian Cenedese 
> wrote:
>
>>
>> >I have a pipeline which is configured for the SVN path in Jenkins
>> pipeline. <https://svn.domain.com/org/project/trunk/Platform/Src>
>> 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 ExcludedRegions like /Build/ProjectFolder1/.* and so on. But
>> this is not working. Any help will be appreciated.
>>
>> Depending on the number of projects to include/exclude you could create
>> a new svn "repository" which just consists of external links to the stuff
>> you want and checkout that. However depending on your structure
>> this might not be feasible.
>>
>> bye  Fabi
>>
>> --
>> 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/20200824172418.F127141B9BC8%40macserver.private
>> .
>>
>

-- 
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/CAPp28eoceo%2Bu13bGYnVW%2B0_QsQX0__d0qF6eLriZyQzeA%3DKMaA%40mail.gmail.com.


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: '*.*SubFolder1.**',
filterChangelog: false, ignoreDirPropChanges: true, locations:
[[cancelProcessOnExternalsFail: true, credentialsId: 'MyCredential_ID',
depthOption: 'infinity', ignoreExternalsOption: true, local: '.', remote:
"${SRC_SVN_URL}"]], quietOperation: true, workspaceUpdater: [$class:
'UpdateUpdater']])

If you carefully observe, it is a very subtle but important format. You
have to give it in the format *.*FolderName.* *. There are no slashes or
prefixes other than *.** and postfixes other than *.** and no need of
giving full or relative path, but just the folder name with .* prefix and
postfix, that's it. Thanks to the link
http://jenkins-ci.361315.n4.nabble.com/Exclude-folder-in-subversion-from-triggering-new-builds-td2993203.html

However, now the challenge is to exclude multiple paths. As per the
documentation for ExcludedRegions, every path (folder) should be in a
newline. I am not sure how to specify that in the checkout step. I tried
various ways, but no luck yet. If someone can please help me, it will be
great.

Regards,
Venkatesh


On Mon, Aug 24, 2020 at 10:54 PM Fabian Cenedese  wrote:

>
> >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 ExcludedRegions like /Build/ProjectFolder1/.* and so on. But this
> is not working. Any help will be appreciated.
>
> Depending on the number of projects to include/exclude you could create
> a new svn "repository" which just consists of external links to the stuff
> you want and checkout that. However depending on your structure
> this might not be feasible.
>
> bye  Fabi
>
> --
> 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/20200824172418.F127141B9BC8%40macserver.private
> .
>

-- 
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/CAPp28er4s7Xvo9eDfxxGou1maXVNPtbj%2B9RKQBjLRZQt22cqzQ%40mail.gmail.com.


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,
>>
>> 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 ExcludedRegions like */Build/ProjectFolder1/.** and so on. But
>> this is not working. Any help will be appreciated.
>>
>> 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 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/CAPp28eqwYzC-%2B9Ms9PbfL2Six7VZ6BwRRyZ_NnsjsiHB3c1-XA%40mail.gmail.com.


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 provided another option "Propagate". Can I use
both "wait" & "propagate"? Sorry for being naive, but I am new to Pipeline
scripting.

Regards,
Venkatesh


On Fri, Aug 21, 2020 at 11:13 PM jeremy mordkoff 
wrote:

> I only know scripted, which has 3 options:
>
> wait for completion and propagate errors:
> build job: 'lp_systemtest3/master'
>
> no propagate errors
> build propagate: false, job: 'lp_systemtest3/master'
>
> don't wait
> build wait: false, job: 'lp_systemtest3/master'
>
> On Friday, August 21, 2020 at 1:05:08 PM UTC-4 venh...@gmail.com wrote:
>
>> 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 ran
>> successfully. I want JobA to trigger JobB on Post success condition and
>> then not fail JobA, if JobB fails, preferably without try/catch blocks.
>>
>> Regards,
>> Venkatesh
>>
>>
>> On Fri, Aug 21, 2020 at 9:31 PM jeremy mordkoff 
>> wrote:
>>
>>> Are you using scripted or declarative? I will assume scripted since
>>> that's all I know :)
>>>
>>> There's a don't wait option. Or you could wrap the call in a try/catch.
>>> Or you could save currentBuild.result before calling job B and restore it
>>> after
>>>
>>>
>>>
>>> On Friday, August 21, 2020 at 5:09:57 AM UTC-4 venh...@gmail.com wrote:
>>>
 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 successfully)?

 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 emails from it, send
>>> an email to jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/2ff128f9-90d4-496c-942e-321101096fa3n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/70e3e916-6a1d-47fd-8ab6-4544575c5d6fn%40googlegroups.com
> 
> .
>

-- 
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/CAPp28eqeGVr75mKSk9x5yFoqbbx%2BD%3DM-qV7z_g7fau%2BSeyRf7g%40mail.gmail.com.


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 ran
successfully. I want JobA to trigger JobB on Post success condition and
then not fail JobA, if JobB fails, preferably without try/catch blocks.

Regards,
Venkatesh


On Fri, Aug 21, 2020 at 9:31 PM jeremy mordkoff 
wrote:

> Are you using scripted or declarative? I will assume scripted since that's
> all I know :)
>
> There's a don't wait option. Or you could wrap the call in a try/catch. Or
> you could save currentBuild.result before calling job B and restore it after
>
>
>
> On Friday, August 21, 2020 at 5:09:57 AM UTC-4 venh...@gmail.com wrote:
>
>> 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 successfully)?
>>
>> 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 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/2ff128f9-90d4-496c-942e-321101096fa3n%40googlegroups.com
> 
> .
>

-- 
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/CAPp28eqk2kZVbqw%2BnBbK3RPfhMo3NZgUr_nzPDW82kHgpni%3Dsg%40mail.gmail.com.


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 successfully)?

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 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/CAPp28eqShuPLEaiyLS0sYqqJH2jD7VK-0s%2BkxrEPbXk2BT%2BEXA%40mail.gmail.com.


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 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 ExcludedRegions like */Build/ProjectFolder1/.** and so on. But
> this is not working. Any help will be appreciated.
>
> 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 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/CAPp28ep_VigjFK-S5yEVYmXSiLWkJAzA96%3DLiUMnZ2g2hMLoAg%40mail.gmail.com.


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 => the workdir for the job
> trunk%2FPlatform@tmp => the checkout for the Jenkinsfile to set up the
> job.
>
> the @n dirs are created for further parallel runs.
>
> Björn
>
>
>> --
> 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/5219e400-ad91-48c8-ac50-dd9f81767c3bn%40googlegroups.com
> 
> .
>

-- 
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/CAPp28eo7h-dRd6K1BvLGGMZgWhWS9i%2BOXsBspTOkrB-mu-iOGA%40mail.gmail.com.


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 these many directories now.

trunk%2FPlatform
trunk%2FPlatform@tmp
trunk%2FPlatform@2
trunk%2FPlatform@2@tmp
trunk%2FPlatform@3
trunk%2FPlatform@3@tmp
trunk%2FPlatform@4
trunk%2FPlatform@4@tmp
and so on...

Although, this doesn't always happen, it happens every now and then. I am
not sure of the reason and would like to fix this. Can anyone please help
me with this? Because of this, the drive itself runs out of space
sometimes, since the code base is very large.


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 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/CAPp28eqrWwCPnD2NmZ5kgxYsLweYnpUQHHhrZOvw4ZMKNbEfmw%40mail.gmail.com.


Re: Unable to locate file Groovy-html.template

2020-08-13 Thread Ven H
Thanks a lot for your prompt response. Appreciate it.

Regards,
Venkatesh


On Thu, Aug 13, 2020 at 8:22 PM Slide  wrote:

> That template is a resource in the email-ext plugin hpi file, so you won't
> find it directly on the server. If you want to see the contents and use a
> modified 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, 2020 at 6:38 AM Ven H  wrote:
>
>> 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 for me also). So, I am trying to understand where this file is
>> actually located. I would also like to get it's source. 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 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/CAPp28er--mKxi9jCwwKgwrnrkmEccQsmUTN5nsYEULkhr7CWjQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28er--mKxi9jCwwKgwrnrkmEccQsmUTN5nsYEULkhr7CWjQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> Website: http://earl-of-code.com
>
> --
> 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/CAPiUgVeyrE9yO29JwAiaUtjzs%2BPJXntkRnGtNxhAWx5r9O3-hw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeyrE9yO29JwAiaUtjzs%2BPJXntkRnGtNxhAWx5r9O3-hw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAPp28eqG_gFiHdmNMf7%3D_DEOs1kKyHCz_HRBUtykmrzNn0iMSQ%40mail.gmail.com.


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 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/CAPp28erm5%3DGrXoWcJ79V-xMHXcmUQ1hAQE2oseowge3M4C9rBw%40mail.gmail.com.


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
for me also). So, I am trying to understand where this file is actually
located. I would also like to get it's source. 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 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/CAPp28er--mKxi9jCwwKgwrnrkmEccQsmUTN5nsYEULkhr7CWjQ%40mail.gmail.com.


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 ExcludedRegions like */Build/ProjectFolder1/.** and so on. But this
is not working. Any help will be appreciated.

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 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/CAPp28eoPkKPdQ_r%2BaBOvdB2CdEHDJGX%2BuiGDhJhgKNur1yqyOA%40mail.gmail.com.


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 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/CAPp28ep5VYMqg8WwM8NS%2BVkF1W_RUM46eZfoLoJGPuiD5zYfxw%40mail.gmail.com.