RE: [JCasC] job parameters lost when re-starting docker container / reloading existing configuration

2021-02-18 Thread Reinhold Füreder
Hi Danny et al,

I think, I just stumbled over the same problem:

  *   parameterized pipeline + Jenkins Docker container restart + JCasC + 
JobDSL (that is re-generating the parameterized scripted pipeline – pipeline 
from SCM -- during Jenkins startup via 
“j.j.plugin.JenkinsJobManagement#createOrUpdateConfig: createOrUpdateConfig for 
...”)
 *   Problem is (again and again) the first run of pipeline after Jenkins 
Docker container restart
*   Note: I think I am OK with the (missing parameterization) problem 
in any very first pipeline run ever, or after changing the pipeline 
parameterization
*   => JCasC or JobDSL might need to address this issue, I guess/think?
 *   I personally think that these open Jenkins bugs/issues are not 
necessarily correctly specified, or let’s say they or their title might be too 
generic?
*   https://issues.jenkins-ci.org/browse/JENKINS-41929 “Offer "Build 
with Parameters" on first build when declarative Jenkinsfile found”
   *   => No, my problem is also for scripted
*   https://issues.jenkins.io/browse/JENKINS-43758 “Parameters 
disappear from pipeline job after running the job”
   *   => No, normally parameters stay; it is only gone after Jenkins 
Docker container restart
   *   Actually the comment by Falko Modler in 
https://issues.jenkins.io/browse/JENKINS-43758?focusedCommentId=380158=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-380158
 describes it perfectly, I think!


One possible workaround – that might be OK if there are very few affected 
parameterized pipelines, or the parameterization is fairly stable, or there are 
just very few different paramaterizations – seems to be duplicating the 
parameterization into the JobDSL specification of the pipeline, for example:


  *   In the pipeline code:

properties([
parameters([
string(name: 'targetHost', defaultValue: 'my.host.com', description: 
'IP/Hostname of target server', trim: true)
])
])


  *   In the JobDSL code:

pipelineJob(" My pipeline JobName") {
  // Workaround for 
https://issues.jenkins.io/browse/JENKINS-43758?focusedCommentId=380158=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-380158
  parameters {
stringParam('targetHost', 'my.host.com', 'IP/Hostname of target server')
  }
  definition {
cpsScm {
  ...


Are there any updates on this problem?
Or are there open Jenkins (plugin) issues that really address this problem? Or 
should we file a new one specific for this problem? (If so, I am not even sure 
for which Jenkins plugin, to be perfectly honest.)
Or is there a better workaround?

Thanks,
   Reinhold


From: jenkinsci-users@googlegroups.com  On 
Behalf Of Danny Trunk
Sent: Freitag, 16. Oktober 2020 18:43
To: jenkinsci-users@googlegroups.com
Subject: [JCasC] job parameters lost when re-starting docker container / 
reloading existing configuration

Hello everyone,

I've set up a container with jenkins.yaml file in $JENKINS_HOME which is 
loading a parameterized pipeline job:

jobs:
  - script: >
  pipelineJob('lineage') {
definition {
  cpsScm {
scriptPath 'Jenkinsfile'
scm {
  git {
configure { git ->
  git / 'extensions' / 
'hudson.plugins.git.extensions.impl.SparseCheckoutPaths' / 
'sparseCheckoutPaths' {
'hudson.plugins.git.extensions.impl.SparseCheckoutPath' {
  path('Jenkinsfile')
}
  }
}
extensions {}
remote {
  url 'https://github.com/dtrunk90/jenkins-lineage-docker.git'
}
  }
}
  }
}
  }

In order to retrieve the parameters defined in the Jenkinsfile it needs to be 
initially run.
There's a known issue which described that behaviour: 
https://issues.jenkins-ci.org/browse/JENKINS-41929

But now, everytime i restart the container or reload existing configuration 
through UI parameters are gone again and my workaround to abort the first build 
doesn't work anymore because it checks for the build number 1:

script {
   if ('1'.equals(env.BUILD_NUMBER) && 
currentBuild.getBuildCauses('hudson.model.Cause$UserIdCause') != null) {
  currentBuild.displayName = 'Parameter loading'
  currentBuild.description = 'Please restart 
pipeline'
  currentBuild.result = 'ABORTED'

  error 'Stopping initial manually triggered build 
as we only want to get the parameters'
   }
}

Any ideas on how I can extend my workaround or better how to avoid removing 
existing job parameters when reloading existing configuration?
I don't know if this can be considered a bug or an enhancement request for 
JCasC to not remove those job parameters.
Any 

Re: HTTP Status 403 – Forbidden error

2021-02-18 Thread Mark Waite
You may need to investigate the settings on your tomcat server.  I would
guess that it is somehow disrupting the flow of the crumb from Jenkins to
the browser or from the browser to Jenkins.  I don't run Jenkins in tomcat,
so I have no experience with diagnosing issues in tomcat.

On Thu, Feb 18, 2021 at 10:35 PM Mk  wrote:

> Thanks Mark. I have uninstalled the *MultiSCM plugin* and restarted the
> service. However still i am experiencing the same problem*. (**Manage
> Jenkins* --> *Configure Systems* section post any modification if i click
> save button it fails). Now from systems log i can below above errors
> disappeared.
>
> Feb 19, 2021 10:56:05 AM WARNING hudson.security.csrf.CrumbFilter doFilter
> No valid crumb was included in request for /jenkins/configSubmit by
> vasanth.guru. Returning 403.
>
> On Friday, February 19, 2021 at 10:31:23 AM UTC+5:30 Mark Waite wrote:
>
>> That null pointer exception seems likely to have been caused by one of
>> the plugins that was updated.  Since it is mentioning LibraryConfiguration,
>> SCMRetriever, and MultiSCM, you might first look at the
>> workflow-cps-global-lib and the multiple-scms plugin to see if either of
>> them were recently upgraded.
>>
>> The MultipleSCMs plugin has been deprecated.  Jenkins Pipeline is the
>> better way to implement multiple SCM support from within a single job.
>>
>> Mark Waite
>>
>> On Thu, Feb 18, 2021 at 9:47 PM Mk  wrote:
>>
>>>
>>> Hello Jenkins Community team,
>>>
>>> I am using *Jenkins - 2.263.1(LTS)* deployed through tomcat.
>>>
>>> I have upgraded few of the plugins yesterday since then i am facing
>>> following issue whenever i modify any settings under *Manage Jenkins*
>>> --> *Configure Systems* section if i click save button. it takes few
>>> mins and throws the below error.
>>>
>>> HTTP Status 403 – Forbidden
>>> Type Status Report
>>> Message No valid crumb was included in the request
>>> Description The server understood the request but refuses to authorize
>>> it.
>>> Apache Tomcat/9.0.30
>>>
>>> From jenkins systems log below message shown.
>>>
>>> Feb 18, 2021 7:52:13 AM WARNING hudson.ExpressionFactory2$JexlExpression
>>> evaluate
>>>
>>> Caught exception evaluating: h.filterDescriptors(it,attrs.descriptors)
>>> in /jenkins/configure. Reason: java.lang.NullPointerException: Descriptor
>>> list is null for context 'class hudson.model.Hudson' in thread 'Handling
>>> GET /jenkins/configure from 206.25.26.27 : http-nio-8080-exec-2
>>> Jenkins/configure.jelly GlobalLibraries/config.jelly
>>> LibraryConfiguration/config.jelly SCMRetriever/DescriptorImpl/config.jelly
>>> MultiSCM/DescriptorImpl/config.jelly'
>>> java.lang.NullPointerException: Descriptor list is null for context
>>> 'class hudson.model.Hudson' in thread 'Handling GET /jenkins/configure from
>>> 206.25.26.27 : http-nio-8080-exec-2 Jenkins/configure.jelly
>>> GlobalLibraries/config.jelly LibraryConfiguration/config.jelly
>>> SCMRetriever/DescriptorImpl/config.jelly
>>> MultiSCM/DescriptorImpl/config.jelly'
>>> at
>>> hudson.model.DescriptorVisibilityFilter.apply(DescriptorVisibilityFilter.java:73)
>>> at hudson.Functions.filterDescriptors(Functions.java:2122)
>>> at sun.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>
>>> Under *Configure Global security --> CSRF Protection -->Enable proxy
>>> compatibility*(Enabled). Still same problem persists. Therefore please
>>> help me to solve this issue.
>>>
>>> Thanks in advance.
>>>
>>> --
>>> 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/5813788e-3157-45f5-b2d4-f906b3ce8228n%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/3f23087f-d1cd-4fbb-9a6b-30d4bf96dafbn%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 

Re: HTTP Status 403 – Forbidden error

2021-02-18 Thread Mk

Thanks Mark. I have uninstalled the *MultiSCM plugin* and restarted the 
service. However still i am experiencing the same problem*. *Under *Manage 
Jenkins* --> *Configure Systems* section post any modification if i click 
save button it fails. Now from systems log i can below error message.

Feb 19, 2021 10:56:05 AM WARNING hudson.security.csrf.CrumbFilter doFilter
No valid crumb was included in request for /jenkins/configSubmit by 
vasanth.guru. Returning 403.

The account i am using has Admin privilege.
On Friday, February 19, 2021 at 10:31:23 AM UTC+5:30 Mark Waite wrote:

> That null pointer exception seems likely to have been caused by one of the 
> plugins that was updated.  Since it is mentioning LibraryConfiguration, 
> SCMRetriever, and MultiSCM, you might first look at the 
> workflow-cps-global-lib and the multiple-scms plugin to see if either of 
> them were recently upgraded.
>
> The MultipleSCMs plugin has been deprecated.  Jenkins Pipeline is the 
> better way to implement multiple SCM support from within a single job.
>
> Mark Waite
>
> On Thu, Feb 18, 2021 at 9:47 PM Mk  wrote:
>
>>
>> Hello Jenkins Community team,
>>
>> I am using *Jenkins - 2.263.1(LTS)* deployed through tomcat.
>>
>> I have upgraded few of the plugins yesterday since then i am facing 
>> following issue whenever i modify any settings under *Manage Jenkins* 
>> --> *Configure Systems* section if i click save button. it takes few 
>> mins and throws the below error.
>>
>> HTTP Status 403 – Forbidden
>> Type Status Report
>> Message No valid crumb was included in the request
>> Description The server understood the request but refuses to authorize it.
>> Apache Tomcat/9.0.30
>>
>> From jenkins systems log below message shown.
>>
>> Feb 18, 2021 7:52:13 AM WARNING hudson.ExpressionFactory2$JexlExpression 
>> evaluate
>>
>> Caught exception evaluating: h.filterDescriptors(it,attrs.descriptors) in 
>> /jenkins/configure. Reason: java.lang.NullPointerException: Descriptor list 
>> is null for context 'class hudson.model.Hudson' in thread 'Handling GET 
>> /jenkins/configure from 206.25.26.27 : http-nio-8080-exec-2 
>> Jenkins/configure.jelly GlobalLibraries/config.jelly 
>> LibraryConfiguration/config.jelly SCMRetriever/DescriptorImpl/config.jelly 
>> MultiSCM/DescriptorImpl/config.jelly'
>> java.lang.NullPointerException: Descriptor list is null for context 
>> 'class hudson.model.Hudson' in thread 'Handling GET /jenkins/configure from 
>> 206.25.26.27 : http-nio-8080-exec-2 Jenkins/configure.jelly 
>> GlobalLibraries/config.jelly LibraryConfiguration/config.jelly 
>> SCMRetriever/DescriptorImpl/config.jelly 
>> MultiSCM/DescriptorImpl/config.jelly'
>> at 
>> hudson.model.DescriptorVisibilityFilter.apply(DescriptorVisibilityFilter.java:73)
>> at hudson.Functions.filterDescriptors(Functions.java:2122)
>> at sun.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>>
>> Under *Configure Global security --> CSRF Protection -->Enable proxy 
>> compatibility*(Enabled). Still same problem persists. Therefore please 
>> help me to solve this issue.
>>
>> Thanks in advance.
>>
>> -- 
>> 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/5813788e-3157-45f5-b2d4-f906b3ce8228n%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/916407dc-b449-41f8-a52a-ced5a7f32932n%40googlegroups.com.


Re: HTTP Status 403 – Forbidden error

2021-02-18 Thread Mk
Thanks Mark. I have uninstalled the *MultiSCM plugin* and restarted the 
service. However still i am experiencing the same problem*. (**Manage 
Jenkins* --> *Configure Systems* section post any modification if i click 
save button it fails). Now from systems log i can below above errors 
disappeared.

Feb 19, 2021 10:56:05 AM WARNING hudson.security.csrf.CrumbFilter doFilter
No valid crumb was included in request for /jenkins/configSubmit by 
vasanth.guru. Returning 403.

On Friday, February 19, 2021 at 10:31:23 AM UTC+5:30 Mark Waite wrote:

> That null pointer exception seems likely to have been caused by one of the 
> plugins that was updated.  Since it is mentioning LibraryConfiguration, 
> SCMRetriever, and MultiSCM, you might first look at the 
> workflow-cps-global-lib and the multiple-scms plugin to see if either of 
> them were recently upgraded.
>
> The MultipleSCMs plugin has been deprecated.  Jenkins Pipeline is the 
> better way to implement multiple SCM support from within a single job.
>
> Mark Waite
>
> On Thu, Feb 18, 2021 at 9:47 PM Mk  wrote:
>
>>
>> Hello Jenkins Community team,
>>
>> I am using *Jenkins - 2.263.1(LTS)* deployed through tomcat.
>>
>> I have upgraded few of the plugins yesterday since then i am facing 
>> following issue whenever i modify any settings under *Manage Jenkins* 
>> --> *Configure Systems* section if i click save button. it takes few 
>> mins and throws the below error.
>>
>> HTTP Status 403 – Forbidden
>> Type Status Report
>> Message No valid crumb was included in the request
>> Description The server understood the request but refuses to authorize it.
>> Apache Tomcat/9.0.30
>>
>> From jenkins systems log below message shown.
>>
>> Feb 18, 2021 7:52:13 AM WARNING hudson.ExpressionFactory2$JexlExpression 
>> evaluate
>>
>> Caught exception evaluating: h.filterDescriptors(it,attrs.descriptors) in 
>> /jenkins/configure. Reason: java.lang.NullPointerException: Descriptor list 
>> is null for context 'class hudson.model.Hudson' in thread 'Handling GET 
>> /jenkins/configure from 206.25.26.27 : http-nio-8080-exec-2 
>> Jenkins/configure.jelly GlobalLibraries/config.jelly 
>> LibraryConfiguration/config.jelly SCMRetriever/DescriptorImpl/config.jelly 
>> MultiSCM/DescriptorImpl/config.jelly'
>> java.lang.NullPointerException: Descriptor list is null for context 
>> 'class hudson.model.Hudson' in thread 'Handling GET /jenkins/configure from 
>> 206.25.26.27 : http-nio-8080-exec-2 Jenkins/configure.jelly 
>> GlobalLibraries/config.jelly LibraryConfiguration/config.jelly 
>> SCMRetriever/DescriptorImpl/config.jelly 
>> MultiSCM/DescriptorImpl/config.jelly'
>> at 
>> hudson.model.DescriptorVisibilityFilter.apply(DescriptorVisibilityFilter.java:73)
>> at hudson.Functions.filterDescriptors(Functions.java:2122)
>> at sun.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>>
>> Under *Configure Global security --> CSRF Protection -->Enable proxy 
>> compatibility*(Enabled). Still same problem persists. Therefore please 
>> help me to solve this issue.
>>
>> Thanks in advance.
>>
>> -- 
>> 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/5813788e-3157-45f5-b2d4-f906b3ce8228n%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/3f23087f-d1cd-4fbb-9a6b-30d4bf96dafbn%40googlegroups.com.


Re: HTTP Status 403 – Forbidden error

2021-02-18 Thread Mark Waite
That null pointer exception seems likely to have been caused by one of the
plugins that was updated.  Since it is mentioning LibraryConfiguration,
SCMRetriever, and MultiSCM, you might first look at the
workflow-cps-global-lib and the multiple-scms plugin to see if either of
them were recently upgraded.

The MultipleSCMs plugin has been deprecated.  Jenkins Pipeline is the
better way to implement multiple SCM support from within a single job.

Mark Waite

On Thu, Feb 18, 2021 at 9:47 PM Mk  wrote:

>
> Hello Jenkins Community team,
>
> I am using *Jenkins - 2.263.1(LTS)* deployed through tomcat.
>
> I have upgraded few of the plugins yesterday since then i am facing
> following issue whenever i modify any settings under *Manage Jenkins* --> 
> *Configure
> Systems* section if i click save button. it takes few mins and throws the
> below error.
>
> HTTP Status 403 – Forbidden
> Type Status Report
> Message No valid crumb was included in the request
> Description The server understood the request but refuses to authorize it.
> Apache Tomcat/9.0.30
>
> From jenkins systems log below message shown.
>
> Feb 18, 2021 7:52:13 AM WARNING hudson.ExpressionFactory2$JexlExpression
> evaluate
>
> Caught exception evaluating: h.filterDescriptors(it,attrs.descriptors) in
> /jenkins/configure. Reason: java.lang.NullPointerException: Descriptor list
> is null for context 'class hudson.model.Hudson' in thread 'Handling GET
> /jenkins/configure from 206.25.26.27 : http-nio-8080-exec-2
> Jenkins/configure.jelly GlobalLibraries/config.jelly
> LibraryConfiguration/config.jelly SCMRetriever/DescriptorImpl/config.jelly
> MultiSCM/DescriptorImpl/config.jelly'
> java.lang.NullPointerException: Descriptor list is null for context 'class
> hudson.model.Hudson' in thread 'Handling GET /jenkins/configure from
> 206.25.26.27 : http-nio-8080-exec-2 Jenkins/configure.jelly
> GlobalLibraries/config.jelly LibraryConfiguration/config.jelly
> SCMRetriever/DescriptorImpl/config.jelly
> MultiSCM/DescriptorImpl/config.jelly'
> at
> hudson.model.DescriptorVisibilityFilter.apply(DescriptorVisibilityFilter.java:73)
> at hudson.Functions.filterDescriptors(Functions.java:2122)
> at sun.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
>
> Under *Configure Global security --> CSRF Protection -->Enable proxy
> compatibility*(Enabled). Still same problem persists. Therefore please
> help me to solve this issue.
>
> Thanks in advance.
>
> --
> 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/5813788e-3157-45f5-b2d4-f906b3ce8228n%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/CAO49JtEHY-%3DMj6zsqxJfKeC9NnbJwJZsZkwbAvJaY3yFsCQ7Jw%40mail.gmail.com.


HTTP Status 403 – Forbidden error

2021-02-18 Thread Mk

Hello Jenkins Community team,

I am using *Jenkins - 2.263.1(LTS)* deployed through tomcat.

I have upgraded few of the plugins yesterday since then i am facing 
following issue whenever i modify any settings under *Manage Jenkins* --> 
*Configure 
Systems* section if i click save button. it takes few mins and throws the 
below error.

HTTP Status 403 – Forbidden
Type Status Report
Message No valid crumb was included in the request
Description The server understood the request but refuses to authorize it.
Apache Tomcat/9.0.30

>From jenkins systems log below message shown.

Feb 18, 2021 7:52:13 AM WARNING hudson.ExpressionFactory2$JexlExpression 
evaluate

Caught exception evaluating: h.filterDescriptors(it,attrs.descriptors) in 
/jenkins/configure. Reason: java.lang.NullPointerException: Descriptor list 
is null for context 'class hudson.model.Hudson' in thread 'Handling GET 
/jenkins/configure from 206.25.26.27 : http-nio-8080-exec-2 
Jenkins/configure.jelly GlobalLibraries/config.jelly 
LibraryConfiguration/config.jelly SCMRetriever/DescriptorImpl/config.jelly 
MultiSCM/DescriptorImpl/config.jelly'
java.lang.NullPointerException: Descriptor list is null for context 'class 
hudson.model.Hudson' in thread 'Handling GET /jenkins/configure from 
206.25.26.27 : http-nio-8080-exec-2 Jenkins/configure.jelly 
GlobalLibraries/config.jelly LibraryConfiguration/config.jelly 
SCMRetriever/DescriptorImpl/config.jelly 
MultiSCM/DescriptorImpl/config.jelly'
at 
hudson.model.DescriptorVisibilityFilter.apply(DescriptorVisibilityFilter.java:73)
at hudson.Functions.filterDescriptors(Functions.java:2122)
at sun.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Under *Configure Global security --> CSRF Protection -->Enable proxy 
compatibility*(Enabled). Still same problem persists. Therefore please help 
me to solve this issue.

Thanks in advance.

-- 
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/5813788e-3157-45f5-b2d4-f906b3ce8228n%40googlegroups.com.


Re: Best Practice- to deploy into windows machine from jenkins hosted on linux.

2021-02-18 Thread Slide
It depends on the version of Windows, but many modern versions of Windows
(Windows 10, Windows Server 2016/2019) have the capability of having a
native SSH service installed (other versions can use cygwin and so can
these). This is a very viable way to deploy things to a system.

On Thu, Feb 18, 2021 at 1:48 PM John Patrick  wrote:

> What about using Ansible WinRM? for more info
> https://docs.ansible.com/ansible/latest/user_guide/windows.html
>
> Then Jenkins running on Linux just needs ansible installed.
>
> John
>
> On Thu, 18 Feb 2021 at 14:40, jyothibasu kalyanapu
>  wrote:
> >
> > Hi,
> >
> > if the case is jenkins hosted on linux machine & has to deploy in
> windows machine. [adding as slave/node is ruled out]
> >
> > what are other options available in jenkins and which can be better &
> robust.
> >
> >
> > Thankyou
> >
> > --
> > 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/42615a48-d734-464a-84a2-d6082d2384een%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/CAH9u10ngcJyEmg8s6ukwCjEtUEtBtPSTo1w%2BNLghWYpEdXNcxw%40mail.gmail.com
> .
>


-- 
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/CAPiUgVe2BSTemMo1pLT%2B6JKGrzHeObhr8%3DhnS7pAcrozB5V-JQ%40mail.gmail.com.


Re: Best Practice- to deploy into windows machine from jenkins hosted on linux.

2021-02-18 Thread John Patrick
What about using Ansible WinRM? for more info
https://docs.ansible.com/ansible/latest/user_guide/windows.html

Then Jenkins running on Linux just needs ansible installed.

John

On Thu, 18 Feb 2021 at 14:40, jyothibasu kalyanapu
 wrote:
>
> Hi,
>
> if the case is jenkins hosted on linux machine & has to deploy in windows 
> machine. [adding as slave/node is ruled out]
>
> what are other options available in jenkins and which can be better & robust.
>
>
> Thankyou
>
> --
> 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/42615a48-d734-464a-84a2-d6082d2384een%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/CAH9u10ngcJyEmg8s6ukwCjEtUEtBtPSTo1w%2BNLghWYpEdXNcxw%40mail.gmail.com.


Re: How to delete the old name of a renamed repository in an organization folder (multibranch pipeline)

2021-02-18 Thread 'Harry G.' via Jenkins Users
If you cannot delete on disk, I see only 2 options left:
- wait until the bug is fixed https://issues.jenkins.io/browse/JENKINS-64894 
- might take some time I guess 
- if you don't care about build history, delete and recreate the entire 
multibranch project and re-scan

amedee@gmail.com schrieb am Mittwoch, 17. Februar 2021 um 19:25:24 
UTC+1:

> Here at my end the display name of the old repo is not changed.
> Other than that, same symptoms.
>
> I do not have access to the disk that contains the Jenkins folders, as 
> this is a server managed by our hosting company, and currently I do not 
> feel comfortable with them digging deep down into the Jenkins internals.
>
> On Wed, Feb 17, 2021 at 6:18 PM 'Harry G.' via Jenkins Users <
> jenkins...@googlegroups.com> wrote:
>
>> We have the same issue. 
>> Dropdown delete only works for disabled branches, not for repos.
>> And it's even worse: Jenkins recognizes the new repo name and also 
>> renames the display name, which looks like duplicated folders if you don't 
>> check the URL!
>>
>> The only workaround I see currently is to delete the folder on disk and 
>> reload config from disk.
>>
>> As this seems to be a clear bug, I filed it now: 
>> https://issues.jenkins.io/browse/JENKINS-64894
>> This is more serious as it sounds, as it is very confusing for the users 
>> because of the duplicate folder with same display name. 
>> Mark Waite schrieb am Mittwoch, 17. Februar 2021 um 15:55:26 UTC+1:
>>
>>> I've used the "Delete" selection from the dropdown menu to remove 
>>> individual builds (like the disabled PR jobs that are visible on 
>>> ci.jenkins.io) and pull request jobs.  Maybe that would work for 
>>> disabled organization folder jobs as well?
>>>
>>> On Wed, Feb 17, 2021 at 6:32 AM Amedee Van Gasse  
>>> wrote:
>>>
 I have a Bitbucket project organization folder.
 Each repository inside the project is a multibranch pipeline.

 A few weeks ago one of the repositories inside the project was renamed.
 The old repository name is still shown in Jenkins, as disabled.

 How do I remove the old repository name?
 I have already done multiple scans of the organization folder.

 -- 
 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/fe34c100-5d4e-4fc8-87a0-4646f94905c9n%40googlegroups.com
  
 
 .

>>> -- 
>>
> You received this message because you are subscribed to a topic in the 
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/jenkinsci-users/TcGPnRFZZvA/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> jenkinsci-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/adcf1da2-254c-4f22-877c-6b5ee0ba8704n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Amedee Van Gasse
> Email: ame...@vangasse.eu
> Calendar: amedee@gmail.com
> Phone: +32 485 805 674
> Twitter: @amedee
>

-- 
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/eae29755-bb3a-482d-b3fe-c9c7185b73fbn%40googlegroups.com.


Best Practice- to deploy into windows machine from jenkins hosted on linux.

2021-02-18 Thread jyothibasu kalyanapu
Hi,

if the case is jenkins hosted on linux machine & has to deploy in windows 
machine. [adding as slave/node is ruled out]

what are other options available in jenkins and which can be better & 
robust.


Thankyou

-- 
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/42615a48-d734-464a-84a2-d6082d2384een%40googlegroups.com.