How to convert scripted pipeline code into declarative code?

2024-02-12 Thread Mohan
Hello Jenkins members,

Is it possible to convert jenkins scripted pipeline code into declarative
pipeline code?

Are there any automated tools available?

Please let me know. Thank you 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/CA%2B4Hw5YqzGH2U5Zu3%3Due2yJ3b9m_rArVUHVigPjXJhOoshPHCg%40mail.gmail.com.


Re: HTTP Status 403 – Forbidden error

2021-02-27 Thread Mohan
It looks security feature included in *2.263.1(LTS) version,**and that
required authentication even for tomcat.*

1) Under Configure Global security --> CSRF Protection -->Enable proxy
compatibility( Tick marked Enabled).
2) hudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION
= true
3) Installed the Strict Crumb Issuer plugin.
   Enabled this plugin and uncheck Check the session ID from its
configuration (Under Jenkins Configure Global Security).
4) Restated the Jenkins.

Have tried above workaround, however it didn't help.

Any other pointer to solve this would be helpful.


On Fri, 19 Feb 2021, 11:18 am Mark Waite,  wrote:

> 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 

Re: Jenkins Integration with LDAP - Testing Connection Fails

2021-01-01 Thread Mohan
Okay.  In that case you need provide the password of account configured in
Manager DN section.

On Fri, 1 Jan 2021, 3:49 pm anilkumar panditi, 
wrote:

> Hi Mk,
> Yes i have the CN,OU details i was confused what is this Manager DN
> password, also when we click on Test it prompt for credentials which i am
> giving the LDAP admin credentials.
>
> On Friday, 1 January 2021 at 13:15:02 UTC+5:30 Mk wrote:
>
>> Manager credentials should be your domain LDAP Credentials. So it
>> requires the complete CN,OU details. To get that contact your domain
>> administrators.
>>
>> On Fri, 1 Jan 2021, 1:10 pm anilkumar panditi, 
>> wrote:
>>
>>> Okay, can you help how to create manager credentials, also i am trying
>>> from the command (what is the user id need to give in this command)
>>>
>>> ldapsearch -x -h ad-ldap-server.com
>>>  -p 389 -D "CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com"  -b 
>>> "OU=Users,OU=Division,OU=Team,DC=domain,DC=com" "(sAMAccountName=jenkins)" 
>>> -W
>>>
>>> Thanks,
>>> Anil
>>>
>>> On Friday, 1 January 2021 at 12:33:02 UTC+5:30 Mk wrote:
>>>
 Hi Anil,

 Manager and manager password need to configured to validate the test
 connection.

 On Fri, 1 Jan 2021, 12:29 pm anilkumar panditi, 
 wrote:

> Hi MK,
> i am getting ldap_bind: Invalid credentials (49)
>
> what are the credentials need to give here.
>
> Thanks,
> Anil
>
> On Saturday, 22 August 2020 at 10:00:55 UTC+5:30 Mk wrote:
>
>> Hi Jeremy, Thanks for the reply. Actually *ldapsearch* command on
>> jenkins master server terminal works. Below is the response.
>>
>> ldapsearch -x -h ad-ldap-server.com -p 389 -D
>> "CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com"  -b
>> "OU=Users,OU=Division,OU=Team,DC=domain,DC=com"
>> "(sAMAccountName=jenkins)" -W
>> Enter LDAP Password:
>> # extended LDIF
>> #
>> # LDAPv3
>> # base  with scope
>> subtree
>> # filter: (sAMAccountName=jenkins)
>> # requesting: ALL
>> #
>>
>> # search result
>> search: 2
>> result: 0 Success
>>
>> # numResponses: 2
>> # numEntries: 1
>>
>> Since i am getting reponse so seems i have permission to query the
>> AD(LDAP) server.
>>
>> Also tried *Login name case sensitivity* & *Group name case
>> sensitivity* - Both with *Case sensitive* & *Case insensitive *but
>> still same result.
>>
>>
>>
>> On Friday, August 21, 2020 at 11:44:56 PM UTC+5:30, jeremy mordkoff
>> wrote:
>>>
>>> sounds like the user is valid but not a member of any groups. Is
>>> that possible?
>>>
>>>
>>>
>>> On Thursday, August 20, 2020 at 1:28:21 PM UTC-4 Mk wrote:
>>>
 Hi Team,

 I am trying to configure LDAP(AD) Authentication in our Jenkins,
 Below is my configuration settings, But test LDAP connection is 
 failing.

 Environment:-
 Jenkins Version - 2.235.5(LTS)
 LDAP Plugin - 1.24


 Server - ldap://ad-ldap-server.com
 root DN: DC=domain,DC=com
 User search base: OU=Users,OU=Division,OU=Team,DC=domain,DC=com
 User search filter: sAMAccountName={0}
 Group search base: OU=Users,OU=Division,OU=Team,DC=domain,DC=com
 Group search filter: (&(objectclass=group)(cn={0}))
 Group membership
   Group membership filter -
 (&(objectCategory=group)(member:1.2.840.113556.1.4.1941:={0}))
 Manager DN: CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com
 Manager Password: password
 Display Name LDAP attribute: displayname
 Email Address LDAP attribute: mail


 Error Message:-

 [image: 1.png]

 Please let me know what is missing in my configuration?. Any help
 would be appreciated.

>>> --
> 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/ff6057a3-0c96-48d9-ae83-7c8cfe234fe9n%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-use...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/b189583d-7246-41f2-89d3-0eef98e6c718n%40googlegroups.com
>>> 

Re: Jenkins Integration with LDAP - Testing Connection Fails

2020-12-31 Thread Mohan
Manager credentials should be your domain LDAP Credentials. So it requires
the complete CN,OU details. To get that contact your domain administrators.

On Fri, 1 Jan 2021, 1:10 pm anilkumar panditi, 
wrote:

> Okay, can you help how to create manager credentials, also i am trying
> from the command (what is the user id need to give in this command)
>
> ldapsearch -x -h ad-ldap-server.com
>  -p 389 -D "CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com"  -b 
> "OU=Users,OU=Division,OU=Team,DC=domain,DC=com" "(sAMAccountName=jenkins)" -W
>
> Thanks,
> Anil
>
> On Friday, 1 January 2021 at 12:33:02 UTC+5:30 Mk wrote:
>
>> Hi Anil,
>>
>> Manager and manager password need to configured to validate the test
>> connection.
>>
>> On Fri, 1 Jan 2021, 12:29 pm anilkumar panditi, 
>> wrote:
>>
>>> Hi MK,
>>> i am getting ldap_bind: Invalid credentials (49)
>>>
>>> what are the credentials need to give here.
>>>
>>> Thanks,
>>> Anil
>>>
>>> On Saturday, 22 August 2020 at 10:00:55 UTC+5:30 Mk wrote:
>>>
 Hi Jeremy, Thanks for the reply. Actually *ldapsearch* command on
 jenkins master server terminal works. Below is the response.

 ldapsearch -x -h ad-ldap-server.com -p 389 -D
 "CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com"  -b
 "OU=Users,OU=Division,OU=Team,DC=domain,DC=com"
 "(sAMAccountName=jenkins)" -W
 Enter LDAP Password:
 # extended LDIF
 #
 # LDAPv3
 # base  with scope
 subtree
 # filter: (sAMAccountName=jenkins)
 # requesting: ALL
 #

 # search result
 search: 2
 result: 0 Success

 # numResponses: 2
 # numEntries: 1

 Since i am getting reponse so seems i have permission to query the
 AD(LDAP) server.

 Also tried *Login name case sensitivity* & *Group name case
 sensitivity* - Both with *Case sensitive* & *Case insensitive *but
 still same result.



 On Friday, August 21, 2020 at 11:44:56 PM UTC+5:30, jeremy mordkoff
 wrote:
>
> sounds like the user is valid but not a member of any groups. Is that
> possible?
>
>
>
> On Thursday, August 20, 2020 at 1:28:21 PM UTC-4 Mk wrote:
>
>> Hi Team,
>>
>> I am trying to configure LDAP(AD) Authentication in our Jenkins,
>> Below is my configuration settings, But test LDAP connection is failing.
>>
>> Environment:-
>> Jenkins Version - 2.235.5(LTS)
>> LDAP Plugin - 1.24
>>
>>
>> Server - ldap://ad-ldap-server.com
>> root DN: DC=domain,DC=com
>> User search base: OU=Users,OU=Division,OU=Team,DC=domain,DC=com
>> User search filter: sAMAccountName={0}
>> Group search base: OU=Users,OU=Division,OU=Team,DC=domain,DC=com
>> Group search filter: (&(objectclass=group)(cn={0}))
>> Group membership
>>   Group membership filter -
>> (&(objectCategory=group)(member:1.2.840.113556.1.4.1941:={0}))
>> Manager DN: CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com
>> Manager Password: password
>> Display Name LDAP attribute: displayname
>> Email Address LDAP attribute: mail
>>
>>
>> Error Message:-
>>
>> [image: 1.png]
>>
>> Please let me know what is missing in my configuration?. Any help
>> would be appreciated.
>>
> --
>>> 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/ff6057a3-0c96-48d9-ae83-7c8cfe234fe9n%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/b189583d-7246-41f2-89d3-0eef98e6c718n%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/CA%2B4Hw5Y01ZD8Lo-QAiG8UxXdHjJ8kxuJ5Y6zokuxdKXEUEnpWQ%40mail.gmail.com.


Re: Jenkins Integration with LDAP - Testing Connection Fails

2020-12-31 Thread Mohan
Hi Anil,

Manager and manager password need to configured to validate the test
connection.

On Fri, 1 Jan 2021, 12:29 pm anilkumar panditi, 
wrote:

> Hi MK,
> i am getting ldap_bind: Invalid credentials (49)
>
> what are the credentials need to give here.
>
> Thanks,
> Anil
>
> On Saturday, 22 August 2020 at 10:00:55 UTC+5:30 Mk wrote:
>
>> Hi Jeremy, Thanks for the reply. Actually *ldapsearch* command on
>> jenkins master server terminal works. Below is the response.
>>
>> ldapsearch -x -h ad-ldap-server.com -p 389 -D
>> "CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com"  -b
>> "OU=Users,OU=Division,OU=Team,DC=domain,DC=com"
>> "(sAMAccountName=jenkins)" -W
>> Enter LDAP Password:
>> # extended LDIF
>> #
>> # LDAPv3
>> # base  with scope subtree
>> # filter: (sAMAccountName=jenkins)
>> # requesting: ALL
>> #
>>
>> # search result
>> search: 2
>> result: 0 Success
>>
>> # numResponses: 2
>> # numEntries: 1
>>
>> Since i am getting reponse so seems i have permission to query the
>> AD(LDAP) server.
>>
>> Also tried *Login name case sensitivity* & *Group name case sensitivity*
>> - Both with *Case sensitive* & *Case insensitive *but still same result.
>>
>>
>>
>> On Friday, August 21, 2020 at 11:44:56 PM UTC+5:30, jeremy mordkoff wrote:
>>>
>>> sounds like the user is valid but not a member of any groups. Is that
>>> possible?
>>>
>>>
>>>
>>> On Thursday, August 20, 2020 at 1:28:21 PM UTC-4 Mk wrote:
>>>
 Hi Team,

 I am trying to configure LDAP(AD) Authentication in our Jenkins, Below
 is my configuration settings, But test LDAP connection is failing.

 Environment:-
 Jenkins Version - 2.235.5(LTS)
 LDAP Plugin - 1.24


 Server - ldap://ad-ldap-server.com
 root DN: DC=domain,DC=com
 User search base: OU=Users,OU=Division,OU=Team,DC=domain,DC=com
 User search filter: sAMAccountName={0}
 Group search base: OU=Users,OU=Division,OU=Team,DC=domain,DC=com
 Group search filter: (&(objectclass=group)(cn={0}))
 Group membership
   Group membership filter -
 (&(objectCategory=group)(member:1.2.840.113556.1.4.1941:={0}))
 Manager DN: CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com
 Manager Password: password
 Display Name LDAP attribute: displayname
 Email Address LDAP attribute: mail


 Error Message:-

 [image: 1.png]

 Please let me know what is missing in my configuration?. Any help would
 be appreciated.

>>> --
> 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/ff6057a3-0c96-48d9-ae83-7c8cfe234fe9n%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/CA%2B4Hw5ZUfzJqu7%2BreizETtqv_Opr33TPpLxhrLD1eFmTo6Hv9Q%40mail.gmail.com.


Re: hostPathVolume not mounting on Kubernetes pods(Dynamic Jenkins Agent)

2020-12-06 Thread Mohan
Thanks Ujjawal. I have upgraded my docker image from Ubuntu 16.04.6 LTS -
3.10.0-1160.6.1.el7.x86_64 to Ubuntu 16.04.7 to 3.10.0-1160.6.1.el7.x86_64
still didn't work. But it seems Kubernetes on CentOS-7.9 & with
Kernal-3.10.0-1160.6.1.el7.x86_64 is having a kernel specific issue. So I
have upgraded my native host's OS to CentOS-8.2 with -
4.18.0-193.28.1.el8_2.x86_64 kernel, Now my pipeline build is working fine.

On Sat, Dec 5, 2020 at 7:09 PM Ujjawal Khare 
wrote:

> Great and if it again works on older CentOS then please try to update your
> alpine to latest version.
>
> I am sure then it will start working on latest CentOS too.
>
> We recently faced similar issue with elasticsearch 7 and then it got fixed
> after we updated Alpin.
>
> On Sat, 5 Dec 2020, 19:06 Mohan,  wrote:
>
>> Acutally have tried with Ubuntu-16.04-LTS image aswell even in that also
>> same issue.
>>
>> Sure next will try with K8s host's native OS CentOS- 7.8(It was working
>> earlier).
>>
>> On Sat, 5 Dec 2020, 6:45 pm Ujjawal Khare, 
>> wrote:
>>
>> The issue may be because of kernel version. Old alpine seems to be having
>>> issue with it.
>>>
>>> Can you try same on an older version of CentOS..?
>>>
>>> Or try to use latest version of alpine.
>>>
>>> Regards,
>>> Ujjawal
>>>
>>> On Sat, 5 Dec 2020, 09:19 Mk,  wrote:
>>>
>>>> *Environment: *
>>>> Jenkins - Version 2.235.5 <https://jenkins.io/> (LTS)
>>>> Kubernetes Jenkins Plugin - 1.27.7
>>>> <http://dpi-jenkins/jenkins/pluginManager/plugin/kubernetes/thirdPartyLicenses>
>>>>
>>>> *K8s-Master & Worker Server Details:- *
>>>> OS - CentOS Linux release 7.9.2009 (Core) & Kernal -
>>>> 3.10.0-1160.6.1.el7.x86_64
>>>> Docker Version - 19.03.12
>>>> Client Version: v1.19.0
>>>> Server Version: v1.19.0
>>>>
>>>> I am trying to mount a *hostPathVolume *through Jenkins
>>>> Kubernetes-plugin *podTemplate *and when the pod gets kicked off via
>>>> Jenkins master the path of my K8s worker not getting mounted on K8s
>>>> pods(Jenkins Agent).
>>>>
>>>> I have the below podTemplate
>>>>
>>>> podTemplate(containers: [
>>>> containerTemplate(name: 'build', image: 'alpine/git', ttyEnabled: true,
>>>> command: 'cat'),
>>>> containerTemplate(name: 'test', image: 'maven:3.3.9-jdk-8-alpine',
>>>> command: 'cat', ttyEnabled: true),
>>>> ],
>>>> volumes: [
>>>> hostPathVolume(mountPath: '/home/jenkins', hostPath:
>>>> '/test-vol/abc/workspace'),
>>>> ]
>>>> ) {
>>>> node ("jenkins-node") {
>>>> stage('Code Checkout') {
>>>> checkout([$class: 'GitSCM', branches: [[name: '*/master']],
>>>> doGenerateSubmoduleConfigurations: false, extensions: [[$class:
>>>> 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false,
>>>> timeout: 120]], submoduleCfg: [], userRemoteConfigs: [[url:
>>>> 'ssh://userid@gerrit-server:29418/abc/repository']]])
>>>> }
>>>> }
>>>> node(POD_LABEL) {
>>>> stage('Build') {
>>>> container('build') {
>>>> sh label: '', script: '''cd /home/jenkins/Jenkins_Job/project/src/
>>>> mvn clean install'''
>>>> }
>>>> stage('Test') {
>>>> container('test') {
>>>> sh label: '', script: '''cd /home/jenkins/Jenkins_Job/project/src/
>>>> mvn test'''
>>>> }
>>>> }
>>>> }
>>>> }
>>>> }
>>>> I expect the volume to be mounted in my pod, I have tried with *K8s
>>>> v1.19.4* and *Kubernetes Jenkins Plugin - 1.27.0* but same result. Not
>>>> sure what is causing the problem on *CentOS-7.9* K8s. Whereas the same
>>>> is working perfectly on *CentOS - 8.2.2004 (Core) &
>>>> 4.18.0-193.14.2.el8_2.x86_64 kernal. *
>>>>
>>>> --
>>>> 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/73c67b12-bea5-4e9b-b51a-0acf83f1bd76n%40googlegroups.com
>>>> <https://groups.google.com

Re: hostPathVolume not mounting on Kubernetes pods(Dynamic Jenkins Agent)

2020-12-05 Thread Mohan
Acutally have tried with Ubuntu-16.04-LTS image aswell even in that also
same issue.

Sure next will try with K8s host's native OS CentOS- 7.8(It was working
earlier).

On Sat, 5 Dec 2020, 6:45 pm Ujjawal Khare,  wrote:

The issue may be because of kernel version. Old alpine seems to be having
> issue with it.
>
> Can you try same on an older version of CentOS..?
>
> Or try to use latest version of alpine.
>
> Regards,
> Ujjawal
>
> On Sat, 5 Dec 2020, 09:19 Mk,  wrote:
>
>> *Environment: *
>> Jenkins - Version 2.235.5  (LTS)
>> Kubernetes Jenkins Plugin - 1.27.7
>> 
>>
>> *K8s-Master & Worker Server Details:- *
>> OS - CentOS Linux release 7.9.2009 (Core) & Kernal -
>> 3.10.0-1160.6.1.el7.x86_64
>> Docker Version - 19.03.12
>> Client Version: v1.19.0
>> Server Version: v1.19.0
>>
>> I am trying to mount a *hostPathVolume *through Jenkins
>> Kubernetes-plugin *podTemplate *and when the pod gets kicked off via
>> Jenkins master the path of my K8s worker not getting mounted on K8s
>> pods(Jenkins Agent).
>>
>> I have the below podTemplate
>>
>> podTemplate(containers: [
>> containerTemplate(name: 'build', image: 'alpine/git', ttyEnabled: true,
>> command: 'cat'),
>> containerTemplate(name: 'test', image: 'maven:3.3.9-jdk-8-alpine',
>> command: 'cat', ttyEnabled: true),
>> ],
>> volumes: [
>> hostPathVolume(mountPath: '/home/jenkins', hostPath:
>> '/test-vol/abc/workspace'),
>> ]
>> ) {
>> node ("jenkins-node") {
>> stage('Code Checkout') {
>> checkout([$class: 'GitSCM', branches: [[name: '*/master']],
>> doGenerateSubmoduleConfigurations: false, extensions: [[$class:
>> 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false,
>> timeout: 120]], submoduleCfg: [], userRemoteConfigs: [[url:
>> 'ssh://userid@gerrit-server:29418/abc/repository']]])
>> }
>> }
>> node(POD_LABEL) {
>> stage('Build') {
>> container('build') {
>> sh label: '', script: '''cd /home/jenkins/Jenkins_Job/project/src/
>> mvn clean install'''
>> }
>> stage('Test') {
>> container('test') {
>> sh label: '', script: '''cd /home/jenkins/Jenkins_Job/project/src/
>> mvn test'''
>> }
>> }
>> }
>> }
>> }
>> I expect the volume to be mounted in my pod, I have tried with *K8s
>> v1.19.4* and *Kubernetes Jenkins Plugin - 1.27.0* but same result. Not
>> sure what is causing the problem on *CentOS-7.9* K8s. Whereas the same
>> is working perfectly on *CentOS - 8.2.2004 (Core) &
>> 4.18.0-193.14.2.el8_2.x86_64 kernal. *
>>
>> --
>> 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/73c67b12-bea5-4e9b-b51a-0acf83f1bd76n%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/CAEVfYmjK%2BSgtKV28mko9YOCY4dFZoytmwxdKPorRTWMcQ7oRuw%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/CA%2B4Hw5bTn%2BUmgenD%3DRJ3YFf0GP1WY78unWKXii4y8kFQPi75Tw%40mail.gmail.com.


Re: How to pull parameters from excel sheet and pass it to job

2020-07-16 Thread Braj Mohan
Hi All, You can pull the parameter from excel using shell script below is
the code please check here i am using a google spreadsheet and fetch the
particular field, you can fetch multiple fields also

#URL=
https://docs.google.com/spreadsheets/d/e/2PACX-1vTSkSdNFjtRjZGzsf5NO3TJdaMeBNTYplU8EdN0iXUQXFMVIsdmf9N0g6X1eUYFpchxhE4/pub?output=txt

#URL=
https://docs.google.com/spreadsheets/d/e/2PACX-1vTSkSdNFjtRjwYt7wpjZGzsf5NO3TJYplU8EdN0iXUQXFMVIsdmf9N0g6X1eUYFpchxhE4/pub?output=txt

RESULT=$(wget --no-check-certificate -q -O - $URL | sed '1 d' | cut -f7 )
echo ${RESULT} >/var/lib/jenkins/workspace/output/FrameWork.txt


RESULT1=$(wget --no-check-certificate -q -O - '
https://docs.google.com/spreadsheets/d/e/2PACX-1vTn0s1SuFDDo6M2C1Ey_hrP9rxlb-Uap2ciD77GZdvjZeWzf_mk0fPrHgVa0W5EYM/pub?gid=1140914179=txt'
| sed '1 d' | cut -f7 )
echo ${RESULT1} >/var/lib/jenkins/workspace/output/output.txt

hope this will work for you

Thanks

B.M. Wadia


On Thu, Jul 16, 2020 at 1:30 AM Slide  wrote:

> Also, can you show how you would want something like this to work?
>
> On Wed, Jul 15, 2020 at 12:16 PM 'David Riemens' via Jenkins Users <
> jenkinsci-users@googlegroups.com> wrote:
>
>> Is XLS a requirement?
>>
>> If not too difficult you could go for a simpler format (INI ?) that you
>> could parse using some relatively simple Groovy code ?
>>
>>
>>
>>
>>
>>
>>
>> *From: *Slide 
>> *Sent: *Wednesday, July 1, 2020 21:56
>> *To: *Jenkins User Mailing List 
>> *Subject: *Re: How to pull parameters from excel sheet and pass it to job
>>
>>
>>
>> I don't think there is a way to do this right now.
>> https://plugins.jenkins.io/ui/search?query=excel
>>
>>
>>
>> You may need to do something in a shared library or something similar.
>>
>>
>>
>> On Wed, Jul 1, 2020 at 12:45 PM Devops-warrior 
>> wrote:
>>
>> I have a job which will deploy web, app and DB servers into AWS cloud. As
>> of now we are taking Ip's for each server from Network team and passing
>> manually in build paremeters. Can someone help me? how to pull parameters
>> from excel sheet and pass it on to jenkins job.
>>
>> --
>> 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/73b11319-7504-4539-9758-4f1100e79236o%40googlegroups.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/CAPiUgVeE48U53fp7k-%3D72GwjF6%3DTAHuijShuVaOdSirsiEEGMw%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/5f0f5621.1c69fb81.ee4cb.492fSMTPIN_ADDED_MISSING%40gmr-mx.google.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/CAPiUgVcafOG%2BdjeRf0b5b%2BPzPRVrZH_%2B2oA0niTmhbQE%2BYpiEg%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/CAPEKM0puP6c7UdaXGbnYv7t0GSDtqXX%3D11kMWAiibHmiq8LfOg%40mail.gmail.com.


webpack": "4.19.1" dependency error

2020-04-02 Thread Braj Mohan


Hello Everyone,

I am newbies in Jenkins. In Jenkin, I have done some setup and doing build on 
that but I am getting error in 
npm run build  portion below is the log also please help me out  

+ sudo npm run build

their might be a problem with teh project dependency tree.
It is likely not a bug in Create React App, but something you need to fix 
locally.

Teh react-scripts package provided by Create React App requires a dependency:

  "webpack": "4.19.1"

Don't try to install it manually: you're package manager does it automatically.
However, a different version of webpack was detected higher up in teh tree:

  /var/www/html/runbhumi/frontend/node_modules/webpack (version: 4.42.0) 

Manually installing incompatible versions is known to cause hard-to-debug 
issues.

If prefer to ignore dis check, add SKIP_PREFLIGHT_CHECK=true to an .env file in 
you're project.
That will permanently disable dis message but you might encounter other issues.

To fix teh dependency tree, try following teh steps below in teh exact order:

  1. Delete package-lock.json (not package.json!) and/or yarn.lock in you're 
project folder.
  2. Delete node_modules in you're project folder.
  3. Remove "webpack" from dependencies and/or devDependencies in teh 
package.json file in you're project folder.
  4. Run npm install or yarn, depending on teh package manager you use.

In most cases, dis should be enough to fix teh problem.
If dis TEMPhas not halped, their are a few other things you can try:

  5. If you used npm, install yarn (http://yarnpkg.com/) and repeat teh above 
steps wif it instead.
 This may help because npm TEMPhas non issues wif package hoisting which 
may get resolved in future versions.

  6. Check if /var/www/html/runbhumi/frontend/node_modules/webpack is outside 
your project directory.
 For example, you might has accidentally installed something in your home 
folder.

  7. Try running npm ls webpack in your project folder.
 This will tell you which other package (apart from teh expected 
react-scripts) installed webpack.

If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your 
project.
That would permanently disable this preflight check in case you want to proceed 
anyway.

P.S. We no this message is long but please read teh steps above :-) We hope you 
find them helpful!

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sports@0.1.3 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at teh sports@0.1.3 build script.
npm ERR! This is probably not a problem wif npm. There is likely additional 
logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /var/lib/jenkins/.npm/_logs/2020-04-02T06_57_36_127Z-debug.log
/usr/bin/create-react-app -> /usr/lib/node_modules/create-react-app/index.js
+ create-react-app@3.4.1
updated 1 package in 4.112s
/var/www/html/runbhumi/admin

Thank you

With Best Regard

B.M.Wadia

 



-- 
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/ce30a455-282e-4464-972d-517c46943d8c%40googlegroups.com.


Re: How can i execute shell scripts from Jenkins ?

2020-03-18 Thread Braj Mohan
Hi Derek Brown, 

Can i directly call my .sh file into build section.

Thanks

On Wednesday, 28 September 2011 01:49:58 UTC+5:30, Derek Brown wrote:
>
> Create a Jenkins job, ( i created a free-style software project) 
> In the configuration of that job there is a "Build" section with "Add 
> build step" pulldown. 
> Add a "Execute Shell" step, and  insert your code. 
>
> Hope this helps! 
> Derek . . . 
>
> On Sep 27, 10:00 am, Kendiol  wrote: 
> > Hello everyone, 
> > 
> > I'm a complete newbie to Jenkins. 
> > I'm trying to get Jenkins to monitor the execution of my shell script 
> > so i that i don't have to launch them manually each time but i can't 
> > figure out how to do it. 
> > I found out about the "monitor external job" option but i can't 
> > configure it correctly. 
> > I know that Jenkins can understand Shell script exit code so this is 
> > what i did : 
> > 
> > test1(){ 
> > ls /home/user1 | grep $2 
> > case $? in 
> > 0) msg_error 0 "Okay." 
> > ;; 
> > *) msg_error 2 "Error." 
> > ;; 
> > esac 
> > 
> > } 
> > 
> > It's a simplified version of my functions. 
> > I execute them manually but i want to launch them from Jenkins with 
> > arguments and get the results of course. 
> > Can this be done ? 
> > 
> > Thanks.

-- 
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/8cb077b4-c41a-49ae-bdb1-793b9014a066%40googlegroups.com.


Re: Docker Plugin - Jenkins doesn't have label....

2019-03-29 Thread Mohan S
Hi Mandy, i am facing the problem now. so are you able to resolve the 
reported issue? If yes please assist me.


On Tuesday, December 19, 2017 at 10:12:19 PM UTC+5:30, Mandy Hubbard wrote:
>
> I updated my docker-plugin to 1.1.2 also.  
>
> On Tuesday, December 19, 2017 at 10:11:29 AM UTC-6, nicolas de loof wrote:
>>
>> JENKINS-48490 is not implemented in jenkins-core but docker-plugin, and 
>> should be fixed in 1.1.2
>>
>> 2017-12-19 16:18 GMT+01:00 Mandy Hubbard :
>>
>>> JENKINS-48490 is fixed in 2.89.1.  I upgraded to 2.89.1 and am still 
>>> seeing the issue.  I plan to open a new defect for this.
>>>
>>> On Monday, December 11, 2017 at 5:32:05 PM UTC-6, Mandy Hubbard wrote:

 Thanks for the reply, Nicolas.  Can't say it is the response I was 
 hoping for but at least I know it's not just me.  I've had it working many 
 times before so I knew I had configured it correctly.  Any hints for 
 working around this for now?  I tried restarting Jenkins but it didn't 
 help. 

 On Monday, December 11, 2017 at 2:24:08 PM UTC-6, nicolas de loof wrote:
>
> sounds to me this is more or less 
> https://issues.jenkins-ci.org/browse/JENKINS-48490
> which is a recurrent issue. Still looking for a definitive fix
>
>
> 2017-12-11 17:49 GMT+01:00 Mandy Hubbard :
>
>> Using the Docker Plugin to run Jenkins agents in containers, I often 
>> get the error "Jenkins doesn't have label " even when I 
>> have 
>> the template configured properly and the Docker image is already present 
>> on 
>> the Docker host.  I have sometimes been able to fix it by removing the 
>> image and re-pulling it to the host but at other times I am completely 
>> stuck.  I've tried it using a tag and with no tag.  Has anyone else run 
>> into this?  Do you have any hints on what it could be?
>>
>> Job run log says:
>>
>> Still waiting to schedule task
>> Jenkins doesn’t have label python
>>
>>
>> Here's my docker image
>> jenkins@b1e2e4c28dbd:/$ docker images
>> REPOSITORY  TAG IMAGE ID
>> CREATED SIZE
>> devmandy/python-jenkins-agent   1   6cc6f98875bc
>> 2 hours ago 991MB
>>
>> A screenshot of my Jenkins config is attached. 
>>
>>
>> -- 
>> 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/bd8e173f-844b-4b48-9ba6-56df650b0868%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> -- 
>>> 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/82b914ce-695e-47ba-aaac-041afcc6a7f6%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
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/839398f4-07da-4ca8-89b4-aa1a3e1a89a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Security Vulnerability

2019-01-21 Thread mohan reddy
SM-7 Missing secure flag on session ID 

In secure HTTPS applications, cookies must have the “Secure” flag set. The 
“Secure” flag informs browsers that a cookie should only be sent on 
connections that are encrypted with SSL. 

Without the “secure” flag, the non-encrypted HTTP domain for the 
application receives same-origin access to cookies set by the secure HTTPS 
domain; browsers will send unencrypted plaintext copies of cookies without 
the “secure” flag. 

Because any attacker on the Internet can fake the non-encrypted HTTP domain 
(it’s the encryption provided by TLS in HTTPS that prevents that from 
happening), and because cookies usually form the core of the authentication 
and authorization model of a web application, failing to set the “Secure” 
flag negates much of the security provided by SSL. 

RECOMMENDATION: Consult framework documentation to set the “Secure” flag on 
the cookie. Setting the “Secure” flag is usually simple; the framework may 
have a configuration setting that ensures all cookies are “Secure”, almost 
always provides a configuration option to ensure the Session cookie is 
“Secure”, and will usually offer the “Secure” flag as an option on the line 
of code that creates any given cookie.

-- 
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/69005922-2061-494c-a246-c9cddd91b640%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: System.InvalidOperationException : The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

2018-10-16 Thread mohan reddy
Hey Gayatri,
Please reach me out for clarification

-Mohan Reddy


On Thu 4 Oct, 2018 01:10 Gayathri Katragadda,  wrote:

> I am using access data base engine to read data from excel data. from
> visual studio i am able to run all the tests without any issue. but while
> running from Jenkins i am getting this error message.
>
> System.Reflection.TargetInvocationException : Exception has been thrown by 
> the target of an invocation.
>   > System.InvalidOperationException : The 'Microsoft.ACE.OLEDB.12.0' 
> provider is not registered on the local machine.
>at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] 
> arguments, Signature sig, Boolean constructor)
>at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, 
> Object[] parameters, Object[] arguments)
>at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags 
> invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
>at NUnit.Framework.TestCaseSourceAttribute.GetTestCaseSource(IMethodInfo 
> method) in 
> C:\src\nunit\nunit\src\NUnitFramework\framework\Attributes\TestCaseSourceAttribute.cs:line
>  277
>at NUnit.Framework.TestCaseSourceAttribute.GetTestCasesFor(IMethodInfo 
> method) in 
> C:\src\nunit\nunit\src\NUnitFramework\framework\Attributes\TestCaseSourceAttribute.cs:line
>  173
> --InvalidOperationException
>at 
> System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString 
> constr, DataSourceWrapper& datasrcWrapper)
>at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString 
> constr, OleDbConnection connection)
>at 
> System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions 
> options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, 
> DbConnectionPool pool, DbConnection owningObject)
>at 
> System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection
>  owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions 
> userOptions)
>at 
> System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection 
> owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions 
> userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& 
> connection)
>at 
> System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection
>  outerConnection, DbConnectionFactory connectionFactory, 
> TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
>at 
> System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection 
> outerConnection, DbConnectionFactory connectionFactory)
>at System.Data.OleDb.OleDbConnection.Open()
>at LinqToExcel.Query.ExcelUtilities.GetWorksheetNames(ExcelQueryArgs args)
>at LinqToExcel.ExcelQueryFactory.GetWorksheetNames()
>at 
> Automation_Framework.Excel_Data_Reader.CommonBaseDataReader.get_WorkSheetNames()
>  in 
> C:\WIC\HANDS\EBT\Test_Automation\Hands_Automation_SmokeSuite_src\Automation_Framework\Excel
>  Data Reader\Model\CommonBaseDataReader.cs:line 37
>at 
> Automation_Framework.Excel_Data_Reader.CommonDataReader.get_FamilyInfoData() 
> in 
> C:\WIC\HANDS\EBT\Test_Automation\Hands_Automation_SmokeSuite_src\Automation_Framework\Excel
>  Data Reader\Model\CommonDataReader.cs:line 244
>at 
> Automation_Framework.Excel_Data_Reader.CommonDataReader.IntializeFamilyDetails()
>  in 
> C:\WIC\HANDS\EBT\Test_Automation\Hands_Automation_SmokeSuite_src\Automation_Framework\Excel
>  Data Reader\Model\CommonDataReader.cs:line 80
>at Automation_Framework.Excel_Data_Reader.CommonDataReader.get_Families() 
> in 
> C:\WIC\HANDS\EBT\Test_Automation\Hands_Automation_SmokeSuite_src\Automation_Framework\Excel
>  Data Reader\Model\CommonDataReader.cs:line 32
>at Automation_Smoke_Tests.Data.CommonInfoTestData.Families() in 
> C:\WIC\HANDS\EBT\Test_Automation\Hands_Automation_SmokeSuite_src\Automation_Selenium_Tests\Data\CommonInfoTestData.cs:line
>  102
>
> --
> 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/4bc07231-2f14-4d22-bb56-2eecee8643ef%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/4bc07231-2f14-4d22-bb56-2eecee8643ef%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this 

Re: Jenkins - Security Vulnerability

2018-05-22 Thread mohan reddy
Hi All,

I just want to know if we have any thing can be done to bring this to 
closure.

Any help that you provide is greatly appreciated.


-Mohan

On Monday, May 21, 2018 at 6:43:37 PM UTC+5:30, mohan reddy wrote:
>
> Hi Team,
>
> I was hoping that you would put me in the correct direction. I have 
> reached out to support team who work on Jira tickets (
> https://issues.jenkins-ci.org/browse/SECURITY-880) but no luck.
>
> We'd like to enable the secure flag on session ID's and any help that 
> would provide is greatly appreciated.
>
> Below, is the info:
>
>
> In secure HTTPS applications, cookies must have the “Secure” flag set. The 
> “Secure” flag informs browsers that a cookie should only be sent on 
> connections that are encrypted with SSL.
>
> Without the “secure” flag, the non-encrypted HTTP domain for the 
> application receives same-origin access to cookies set by the secure HTTPS 
> domain; browsers will send unencrypted plaintext copies of cookies without 
> the “secure” flag.
>
> Because any attacker on the Internet can fake the non-encrypted HTTP 
> domain (it’s the encryption provided by TLS in HTTPS that prevents that 
> from happening), and because cookies usually form the core of the 
> authentication and authorization model of a web application, failing to set 
> the “Secure” flag negates much of the security provided by SSL.
>
> *RECOMMENDATION*: Consult framework documentation to set the “Secure” 
> flag on the cookie. Setting the “Secure” flag is usually simple; the 
> framework may have a configuration setting that ensures all cookies are 
> “Secure”, almost always provides a configuration option to ensure the 
> Session cookie is “Secure”, and will usually offer the “Secure” flag as an 
> option on the line of code that creates any given cookie. 
>
>
>
>
>
>

-- 
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/4197debb-9da6-4cc0-9328-562dfb0b74ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Encrypt/Decrypt using Groovy

2016-10-31 Thread Mohan Radhakrishnan
I tried that. It didn't work.

Probably when I call from an external Python script there is not state ?

Mohan

On Monday, 31 October 2016 19:26:41 UTC+5:30, Sean McNamara wrote:
>
> Instead of getPlainText(), try hudson.util.Secret.toString(secret) 
>
> If that doesn't work, then try printing both the encrypted value and 
> the plain text from the `secret` object in the encrypt method... if it 
> gives the result you expect, then yes, there seems to be an issue with 
> state. It might not be picking the right crypto algorithm if you're 
> doing this across different JVMs, for example. 
>
> Sean 
>
> On Mon, Oct 31, 2016 at 9:39 AM, Mohan Radhakrishnan 
> <radhakris...@gmail.com > wrote: 
> > Hi, 
> >I have a doubt here. This code encrypts but doesn't decrypt. 
> Instead 
> > I get the encrypted string back from the decrypt function. Does it need 
> > state to be maintained between these two functions ? 
> > 
> > Thanks, 
> > Mohan 
> > 
> > def encrypt(server ): 
> > value = server.run_script(""" 
> > secret = hudson.util.Secret.fromString("Password") 
> > println secret.getEncryptedValue() 
> > """) 
> > print (value) 
> > 
> > def decrypt(server ): 
> > decryptedvalue = server.run_script(""" 
> > secret = 
> > 
> hudson.util.Secret.fromString("zPc9cFNDcj8RuRIKigYfsTQMiuCrv1lO+Y5qqJXc6RQ=") 
>
> > println secret.getPlainText() 
> > """) 
> > return decryptedvalue 
> > 
> > -- 
> > 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/0afdb0c5-9365-40d5-8e28-7a106dbcca78%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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/0173f29e-7686-43c8-8c1e-098edc81338d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Encrypt/Decrypt using Groovy

2016-10-31 Thread Mohan Radhakrishnan
Hi,
   I have a doubt here. This code encrypts but doesn't decrypt. Instead 
I get the encrypted string back from the decrypt function. Does it need 
state to be maintained between these two functions ?

Thanks,
Mohan

def encrypt(server ):
value = server.run_script("""
secret = hudson.util.Secret.fromString("Password")
println secret.getEncryptedValue()
""")
print (value)

def decrypt(server ):
decryptedvalue = server.run_script("""
secret = 
hudson.util.Secret.fromString("zPc9cFNDcj8RuRIKigYfsTQMiuCrv1lO+Y5qqJXc6RQ=")
println secret.getPlainText()
""")
return decryptedvalue

-- 
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/0afdb0c5-9365-40d5-8e28-7a106dbcca78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Python script development

2016-10-11 Thread Mohan Radhakrishnan
Are there some instructions to load Python code from disk as part of the 
build step ? This code should access Jenkins API. Is that possible ? I want 
to get the build status and act on it.

Mohan

On Thursday, 6 October 2016 22:47:07 UTC+5:30, jer...@bodycad.com wrote:
>
> Sorry my bad, I missread the question, this doesn'T interact with Jenkins 
> IDE API at all, sorry, reverse question, ignore my post, sorry.
>
> You proabbly will have to create a dummy Jenkins server that reside into a 
> VM or something like that and check if the command were operated. But I 
> don't have a clear solution for this. Sorry again.
>
> Jerome
>

-- 
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/780238df-eafa-4388-8949-4ec1649a4c59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Mailer plugin

2016-10-06 Thread Mohan Radhakrishnan
Hi,
   I am able to send a mail from my linux host using the same 
credentials that the mailer is configured with. But the mailer fails.

javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not 
accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials o65sm5068453qkc.48 
- gsmtp


I checked the encrypted password in the mailer XML and it is correct.


Plugin version is 1.17


My client's gmail account doesn't have the option to set 'AppPasswords'.

Mohan

-- 
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/04ca652c-198d-43e2-bb7f-e002f5e8b103%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Python script development

2016-10-06 Thread Mohan Radhakrishnan
Hi,
   I am looking for some advice related to development of Python 
scripts that interact with Jenkins API's. How do you test the Jenkins 
integration in the IDE ? My goal is to check the build status and act on 
it. Can Jenkins run a mock build in the IDE to test my Python code ?

How is this done ?


Thanks,
Mohan

-- 
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/b25f4d4b-e5a7-4e8e-83b0-3bd9d8204a36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins/bitbucket SSH keys

2016-09-26 Thread Mohan Radhakrishnan
Hi,
I am able to successfully using Gitbash and execute some 
Bitbucket commands using SSH keys. But the same command doesn't execute 
from my Windows prompt. I thought that is why Jenkins on my Windows machine 
also fails

I have explained it 
here(http://stackoverflow.com/questions/39674741/jenkins-bitbucket-difference-between-git-bash-openssh-and-windows-prompt-pagea)

I use Pageant to load the key but still there is no success from the 
Windows prompt. Others here have more experience with this setup. I think.

Thanks,
Mohan

-- 
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/63734706-6201-4386-a69b-85e9c21f530d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Could not add HP-ux machine as slave in jenkins

2016-06-21 Thread Thiagu Mohan
I am trying to add hp-ux B.11.31 host as a slave in jenkins. But getting 
below error. Any clue to fix this ?


[06/21/16 06:17:18] [SSH] Opening SSH connection to devsys12.com:22.

[06/21/16 06:17:19] [SSH] Authentication successful.
SSH connection reports a garbage before a command execution.
Check your .bashrc, .profile, and so on to make sure it is quiet.
The received junk text is as follows:
`/usr/bin/tty`: Ambiguous.

hudson.AbortException



Regs,

Thiagu

-- 
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/36aae079-b4d3-4e56-966c-30872f95fc43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.0 beta released

2016-03-28 Thread Madan Mohan
Hi Daniel,

I am unable to see all the types as mentioned in '*New item'*  , only few 
are coming. Do I need to install any specific extra plugins for the same.
What could be the issue of not getting any plugin details in Available page.
is there any documentation on how to use/explore Jenkins 2.0.

Please revert.

*'New item'  contains  (as per jenkins 
site)):https://jenkins.io/images/2.0-create-item.png*

*Thanks,*
*Madan*



On Friday, 25 March 2016 04:18:18 UTC+4, Daniel Beck wrote:
>
> Hi everyone, 
>
> We released the Jenkins 2.0 beta earlier today. It includes basically 
> everything we intent to ship in a few weeks as 2.0. A few features/changes 
> didn't quite make it, and will be added in subsequent weekly releases. 
>
> To learn more about this release and download it, visit our shiny new 
> site: 
> https://jenkins.io/2.0/ 
>
> If you're filing issues in JIRA[1], please add the labels '2.0' and 
> '2.0-beta' so we can easily find your report. Thanks! 
>
> Daniel 
>
> 1: https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue 
>
>

-- 
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/13cb6dac-ce60-49b4-8c9b-11c6fdb540ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to cancel plugin update

2016-02-12 Thread Mohan PAKALAPATI
Hello,

You can easily downgrade/uninstall updated Plugins from Jenkins GUI Plugins
Manger window

you can navigate like this

Jenkins main page-->Manage Jenkins-->Manage Plugins-->Plugin
Manager-->*Installed
Tab*


*[image: Inline image 1]*



Best regards,
Mohan Pakalapati


On Fri, Feb 12, 2016 at 2:55 PM, Victor Martinez <
victormartinezru...@gmail.com> wrote:

> Hi,
>
> As long as you don't restart your Jenkins service you won't use that
> version of promoted build plugins afaik.
>
> You might need to somehow, before restarting your service:
> - remove that hpi file and download the previous version manually (
> http://updates.jenkins-ci.org/download/plugins/promoted-builds/)
> - then you will be able to restart your service
>
> BTW, Jenkins shouldn't override your config files automatically, you are
> safe as long as you don't apply them via the WebUI.
>
> Maybe someone else has already got another workaround
>
> Cheers
>
> On Friday, 12 February 2016 08:48:13 UTC, Paweł Wiśniewski wrote:
>>
>> Hi All,
>>
>> I need to cancel plugin update. I've installed git-plugin and it have
>> updated my promoted-build-plugin. The promotion plugin have already been
>> installed so now in Update Center I have:
>>
>>> promoted builds plugin promoted-builds plugin is already installed.
>>> Jenkins needs to be restarted for the update to take effect
>>>
>>
>> I don't want this new version since configs are not compatible with one I
>> have. How to  cancel this installation.
>>
>> Br,
>> Pawel
>>
> --
> 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/472b0a28-e0c0-42b4-a7b1-38357aeb200b%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/472b0a28-e0c0-42b4-a7b1-38357aeb200b%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAHCF%2BH4raJN640_mCA0ma0oDVnyH_YrP3Tyh6uUuSm6Wq1_wEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [theme] New Jenkins Material Design Theme

2016-01-23 Thread Mohan PAKALAPATI
Looks great
+1
On 21 Jan 2016 22:46, "Afonso F"  wrote:

> Hi guys,
>
> I created a Jenkins theme based on Google Material Design. It changes the
> layout and icons using SVG ones. Take a look!
>
> http://afonsof.com/jenkins-material-theme/
>
>
> 
> 
> 
>
>
>
>
>
> --
> 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/e1a3564b-cd21-4acc-b74b-645cddfd1902%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAHCF%2BH4%2BUiLbJKHNFb1dCQi%3D6htiBuNLY-jfheNJ%3DDR01c8TLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Job Generator Build failing with ClassCastException

2015-07-20 Thread murali mohan

Jenkins version is 1.617

The Job Generator job is a parameterized build with 2 variables/parameters. 
WHen I try to build the job (or generate the job), it asks for the standard 
Jenkins Job Generator options like Process this job only, Disabled Jobs 
etc. But it is not asking for the parameter values that I have configured 
in the job, which is wrong, I think.

The stack trace is given below andthis same stack trace happens in both 
options: 1) When I give a default value for the 2 parameters, 2) When I do 
not enter a value for the 2 parameters

 


Stack trace

javax.servlet.ServletException: java.lang.ClassCastException: 
net.sf.json.JSONNull cannot be cast to net.sf.json.JSONObject
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:123)
at 
hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120)
at 
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:114)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at 
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at 
hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at 

Can we use variables in the custom workspace entry?

2015-07-20 Thread murali mohan
I tried 2 options:
1) Set environment variable from Manage Jenkins - Configure System option. 
Use the environment variable as ${custom_workspace}
2) Set a parameterized build and define a parameter. Use the parameter as 
above

In both cases, the variable/paremter is not getting substituted with the 
value.

Please help.

Thanks,
Murali

-- 
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/70139c70-589f-4ef8-809b-92401598da89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Synergy Plugin - 1.7 cannot get/update the whole completed source codes or tasks?

2015-05-25 Thread Mohan PAKALAPATI
Hello Zheng,

i am new to Jenkins, was trying to use Synergy Jenkins plugin,

can you help how to make configuration in the Jenkins Dashboard 

On Monday, 4 May 2015 16:11:33 UTC+5:30, Fish Zheng wrote:

 Hello, guys,

 Now I'm using Jenkins(Jenkins-1.595.war) with Synergy plugin 1.7,
 however I found sometime it works, sometime it doesn't work.
 I mean Jenkins cannot update/get the whole completed project's source
 tasks. Then this will lead compiling failed, at this time if I update
 the source code manfully (with the Synergy GUI client) into the work
 area, it will get the completed source code and compile successfully.

 Any guys know what's the reason?

 Thanks a lot!!!


-- 
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/a2f566c8-cd8c-40ec-8eb0-f10b6af245cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Deploy multiple jars

2013-09-09 Thread Ashwin Mohan
I have around 10 different jobs to deploy 10 different jars to a
repository.  I am giving separate (10) subversion repository URLs to get
the source.  Wanted to check if there is a way to do these through a single
job.  Please let me know.
Basically I want to get source from different locations and do respective
deployments using the same job. I am on Jenkins 1.501

Thanks,
Ashwin

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Parallel builds

2013-05-03 Thread Mohan Radhakrishnan
 It is a single ANT script with about 20 antcalls. Our CM team is building 
a codebase for about 30 minutes. I don't think even very large projects 
take that long to just build.
 
So it looks like I can spawn the antcalls and join after they are built. I 
am new to jenkins but want to use jenkins nodes. Is there a 
relevant example ?
 
Thanks.
 

On Friday, 3 May 2013 01:40:06 UTC+5:30, Mandeville, Rob wrote:

  It’s the “single ANT script” that has me thinking.

  

 Generally, master/slave node allows one to run different versions of the 
 code (source control branches) or different target platforms at the same 
 time.  But Jenkins won’t magically build one branch on one platform faster 
 just because you have multiple slave nodes.  Basically, you are going to 
 have to split your work up into multiple Jenkins jobs to use multiple 
 slaves for the same build.  And the number of cores you have may not be 
 your limiting factor: you can often run more jobs than you have cores as 
 some jobs are waiting for disk I/O.

  

 The operation I am has a fairly quick build (the core code is in Java), 
 but over 26 hours’ worth of tests (credit card processors _*hate*_ 
 finding bugs in production).  Here, we have one job (per branch) that just 
 pulls the source code from source control, and then launches up to five 
 sub-jobs, each responsible for  building the software itself and running a 
 different subset of tests.

  

 If you are worried about the time it takes to run tests, you can do what I 
 do above.  If you are more concerned with how long it takes to actually 
 build the software, see the discussion at 
 http://stackoverflow.com/questions/3727493/using-multiple-cores-processors-when-compiling-java.
   
 It looks like there are ways to parallelize within ANT, completely 
 orthogonal to how (or if) you use Jenkins.

  

 --Rob 

  

 *From:* jenkins...@googlegroups.com javascript: [mailto:
 jenkins...@googlegroups.com javascript:] *On Behalf Of *JonathanRRogers
 *Sent:* Thursday, May 02, 2013 3:55 PM
 *To:* jenkins...@googlegroups.com javascript:
 *Subject:* Re: Parallel builds

  

 On Thursday, May 2, 2013 5:02:58 AM UTC-4, Mohan Radhakrishnan wrote:
  
 Hi,
  
  What is the recommended way to run parallel builds on multi-core 
 systems ? Mine has 4 cores with capability of 2 hardware threads on each 
 core. Is master/slave mode recommended ?
  
  
  
 How does a single ANT script help in this case ?
  
  
  

  How you can parallelize depends entirely on how your build process works. 
 Jenkins has built in support for multiple executors per host (either master 
 or slave). If your build process can run in any path and doesn't generally 
 depend on global system state, that's probably a good way to go. If your 
 build process depends on specific directories and/or other global state, 
 you probably have to use multiple slaves with one executor each.
  
 -- 
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  
  The information in this message is for the intended recipient(s) only 
 and may be the proprietary and/or confidential property of Litle  Co., 
 LLC, and thus protected from disclosure. If you are not the intended 
 recipient(s), or an employee or agent responsible for delivering this 
 message to the intended recipient, you are hereby notified that any use, 
 dissemination, distribution or copying of this communication is prohibited. 
 If you have received this communication in error, please notify Litle  Co. 
 immediately by replying to this message and then promptly deleting it and 
 your reply permanently from your computer.
  

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Parallel builds

2013-05-02 Thread Mohan Radhakrishnan
Hi,
 What is the recommended way to run parallel builds on multi-core 
systems ? Mine has 4 cores with capability of 2 hardware threads on each 
core. Is master/slave mode recommended ?
 
How does a single ANT script help in this case ?
 
 
Thanks.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




getting Exception in Job Import plugin

2013-01-10 Thread Radha Mohan Maheshwari
javax.servlet.ServletException: java.lang.NullPointerException
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:615)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487)
at org.kohsuke.stapler.Stapler.service(Stapler.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at 
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at 
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
at 
winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:215)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at 
org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
... 38 more

-- 
Radha Mohan Maheshwari


Re: how can I increase session timeout when using jenkins with winston?

2012-12-16 Thread Radha Mohan Maheshwari
try to modify
${user.home}/.jenkins/war/WEB-INF/web.xml

*add this entry*
*session-config session-timeout20/session-timeout /session-config*

On Sun, Dec 16, 2012 at 1:17 PM, ohad shai ohads...@gmail.com wrote:

 I am using jenkins with java -jar war file
 I want to increase session timeout for users login. how can I configure
 that?
 Thanks,
 Ohad.




-- 
Radha Mohan Maheshwari


Re: how can I increase session timeout when using jenkins with winston?

2012-12-16 Thread Radha Mohan Maheshwari
yes , this is in minutes,
yes  it be overriden in upgrade of jenkins.

On Mon, Dec 17, 2012 at 12:17 AM, ohad shai ohads...@gmail.com wrote:

 Thanks!
 I understand this is in minutes...
 will it be overriden in upgrade of jenkins?

 On Sun, Dec 16, 2012 at 8:43 PM, Radha Mohan Maheshwari 
 radhamohanmaheshw...@gmail.com wrote:

 session-timeout





-- 
Radha Mohan Maheshwari


Re: JavaMelody to measure NON J2EE System System parameters like % CPU Usage, Mem usage , etc

2012-10-16 Thread Radha Mohan Maheshwari
what you want to monitor?
if a web-application
than add javamelody.jar in class-path

and configure java-meldoy UI with that web-application (for example if your
service is running on localhost:8080/shop)



On Mon, Oct 15, 2012 at 7:38 PM, Kamal Ahmed kamalah...@yahoo.comwrote:

 Hi,
 Is there a way for JavaMelody to monitor and report Remote CPU Usage,
 Memory Usage, etc ?
 Remote systems are ubuntu in this case.
 Thanks,
 -Kamal.




-- 
Radha Mohan Maheshwari


Re: Multiple jenkins's on one mashine

2012-10-14 Thread Radha Mohan Maheshwari
in jenkins.war
they packaged winstone also.

if you need to run more than one instance
 set JENKINS_HOME in enviroment variable for each jenkins instance.
and  start with java -jar jenkins.war  --ajp13Port=8184 --httpPort=8183

On Sun, Oct 14, 2012 at 5:42 AM, FerkSwe fredrik@gmail.com wrote:

 Okay, so
 Step one:
 Figure out and install winstone
 Step two:
 Install jenkins with the help of winstone
 Step Three:
 Get ajp proxy module for apache and make it all awesome

 Got'ya!

 On Sunday, September 23, 2012 2:17:37 AM UTC+2, LesMikesell wrote:

 On Sat, Sep 22, 2012 at 8:40 AM, FerkSwe fredr...@gmail.com wrote:
  Okay, so this would be the easiest way? Is there any other way?
  yourhost:8080/name does indeed look a bit confusing. Is there any way I
 can
  get yourhost:8080 as one jenkins and yourhost:8081 as another?
 

 If you run with the embedded winstone instead of tomcat you can run
 each on a different port.  And either way, you can run apache with the
 ajp proxy module to accept on the normal port 80 and redirect to
 whatever port/path the instance is running on.

 --
Les Mikesell
  lesmi...@gmail.com




-- 
Radha Mohan Maheshwari


Re: Compute changelog error in hudson-2.2.0

2012-08-14 Thread Mohan
Hi Richard,

Thanks for your reply. I will setup Jenkins and try it.
-Mohan.


Re: How to include external/user defined jar in pom.xml

2012-07-24 Thread Radha Mohan Maheshwari
Hi rohit

if you have any maven repo .deploy that jar to there,
or you have to install this jar to .m2 folder where you are making build of
your project  using jenkins.

Thanks,
Radha Mohan

On Tue, Jul 24, 2012 at 9:18 PM, rohit sharma mailrohi...@gmail.com wrote:

 I have created a user define jar file, i have installed it using maven on
 my local. And am able to deploy and run the code on my local machine.
 But when i checkin the code in Jenkin, Jenkin is not able to find my user
 define jar file.

 Please suggest what needs to be done.

 that is how i am including it in my pom.xml

 dependency

  groupIdcom.search.coordinator/groupId

  artifactIdcoordinator/artifactId

  version0.0.1/version

  scopecompile/scope

 /dependency




-- 
Radha Mohan Maheshwari