Re: ConcurrentModificationException saving artifacts to GCP

2020-10-29 Thread Ivan Fernandez Calvo
Well, we really did not workaround the issue, it simply happens fewer 
times, the real solution will 
be https://github.com/jenkinsci/google-storage-plugin/pull/120

El jueves, 29 de octubre de 2020 a las 16:53:38 UTC+1, Ivan Fernandez Calvo 
escribió:

> We have workaround the issue by using a semaphore to call the GCP storage 
> step
>
>
> import groovy.transform.Field
> @Field def lock = false
>
> @NonCPS
> def setLock(){
>   synchronized(lock) {
> lock = true
>   }
> }
>
> @NonCPS
> def setUnlock(){
>   synchronized(lock) {
> lock = false
>   }
> }
>
> @NonCPS
> def isLock(){
>   synchronized(lock) {
> return lock
>   }
> }
>
> def waitForUnlock(){
>   while(isLock()){
> sleep 10
>   }
> }
>
> def uploadPackages(bucketUri, baseDir){
>   waitForUnlock()
>   setLock()
>   googleStorageUpload(bucket: bucketUri,
> credentialsId: "${JOB_GCS_CREDENTIALS}",
> pathPrefix: "${baseDir}/build/distributions/",
> pattern: "${baseDir}/build/distributions/**/*",
> sharedPublicly: true,
> showInline: true
>   )
>   setUnlock()
> }
> El miércoles, 28 de octubre de 2020 a las 22:34:59 UTC+1, Ivan Fernandez 
> Calvo escribió:
>
>> Hi,
>>
>> We are facing some issues with a job that has about 100 stages in 
>> parallel, we track down the issue and it happens when we storage artifacts 
>> on GCP in parallel, the thing is that I am not sure it is related to the 
>> plugin directly, Could someone take a look to this stack trace and confirm 
>> that it is not related to the Core? BTW we are using Jenkins 2.252 
>>
>> *19:12:54*  java.util.ConcurrentModificationException*19:12:54*  at 
>> java.util.HashMap$HashIterator.nextNode(HashMap.java:1445)*19:12:54* 
>> at java.util.HashMap$KeyIterator.next(HashMap.java:1469)*19:12:54*  at 
>> com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:73)*19:12:54*
>>at 
>> com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)*19:12:54*
>>  at 
>> com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)*19:12:54*
>> at 
>> com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)*19:12:54*
>> at 
>> hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:264)*19:12:54*
>> at 
>> hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:251)*19:12:54*
>>   Caused: java.lang.RuntimeException: Failed to serialize 
>> com.google.jenkins.plugins.storage.reports.BuildGcsUploadReport#files for 
>> class 
>> com.google.jenkins.plugins.storage.reports.BuildGcsUploadReport*19:12:54*
>>   at 
>> hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:255)*19:12:54*
>>  at 
>> hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:223)*19:12:54*
>>   at 
>> com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)*19:12:54*
>>  at 
>> hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)*19:12:54*
>> at 
>> hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)*19:12:54*
>>   at 
>> com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)*19:12:54*
>>  at 
>> com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)*19:12:54*
>> at 
>> com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)*19:12:54*
>> at 
>> com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)*19:12:54*
>> at 
>> com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)*19:12:54*
>>  at 
>> com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)*19:12:54*
>>at 
>> com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)*19:12:54*
>>  at 
>> com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)*19:12:54*
>> at 
>> com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)*19:12:54*
>> at 
>> hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:264)*19:12:54*
>> at 
>> hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:251)*19:12:54*
>>   Caused: java.lang.RuntimeException: Failed to serialize 
>> hudson.model.Actionable#actions for class 
>> org.jenkinsci.plugins.workflow.job.WorkflowRun*19:12:54* at 
>> hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:255)*19:12:54*
>> 

Re: Jenkins UI labels survey

2020-10-29 Thread jeremy mordkoff
Hi Joe, 

Missing an option...I use the UI a lot but not exclusively. 

On Thursday, October 29, 2020 at 10:11:55 AM UTC-4 Joseph Brueggen wrote:

> Hello everyone,
>
> My name is Joe—I'm a designer at CloudBees. I'm gathering some feedback 
> about the Jenkins user interface.
>
> This new survey is about Jenkins UI nomenclature. It takes only 5 minutes 
> to complete, and your feedback would be greatly appreciated!
>
> Here's the survey: https://holisticux.typeform.com/to/nMttDAgi
>
> Thank you!
>

-- 
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/50b1e2e4-6054-4936-81fe-98e5467c63ebn%40googlegroups.com.


Re: ConcurrentModificationException saving artifacts to GCP

2020-10-29 Thread Ivan Fernandez Calvo
We have workaround the issue by using a semaphore to call the GCP storage 
step


import groovy.transform.Field
@Field def lock = false

@NonCPS
def setLock(){
  synchronized(lock) {
lock = true
  }
}

@NonCPS
def setUnlock(){
  synchronized(lock) {
lock = false
  }
}

@NonCPS
def isLock(){
  synchronized(lock) {
return lock
  }
}

def waitForUnlock(){
  while(isLock()){
sleep 10
  }
}

def uploadPackages(bucketUri, baseDir){
  waitForUnlock()
  setLock()
  googleStorageUpload(bucket: bucketUri,
credentialsId: "${JOB_GCS_CREDENTIALS}",
pathPrefix: "${baseDir}/build/distributions/",
pattern: "${baseDir}/build/distributions/**/*",
sharedPublicly: true,
showInline: true
  )
  setUnlock()
}
El miércoles, 28 de octubre de 2020 a las 22:34:59 UTC+1, Ivan Fernandez 
Calvo escribió:

> Hi,
>
> We are facing some issues with a job that has about 100 stages in 
> parallel, we track down the issue and it happens when we storage artifacts 
> on GCP in parallel, the thing is that I am not sure it is related to the 
> plugin directly, Could someone take a look to this stack trace and confirm 
> that it is not related to the Core? BTW we are using Jenkins 2.252 
>
> *19:12:54*  java.util.ConcurrentModificationException*19:12:54*   at 
> java.util.HashMap$HashIterator.nextNode(HashMap.java:1445)*19:12:54* 
> at java.util.HashMap$KeyIterator.next(HashMap.java:1469)*19:12:54*  at 
> com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:73)*19:12:54*
>at 
> com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)*19:12:54*
>  at 
> com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)*19:12:54*
> at 
> com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)*19:12:54*
> at 
> hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:264)*19:12:54*
> at 
> hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:251)*19:12:54*
>   Caused: java.lang.RuntimeException: Failed to serialize 
> com.google.jenkins.plugins.storage.reports.BuildGcsUploadReport#files for 
> class 
> com.google.jenkins.plugins.storage.reports.BuildGcsUploadReport*19:12:54* 
>  at 
> hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:255)*19:12:54*
>  at 
> hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:223)*19:12:54*
>   at 
> com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)*19:12:54*
>  at 
> hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)*19:12:54*
> at 
> hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)*19:12:54*
>   at 
> com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)*19:12:54*
>  at 
> com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)*19:12:54*
> at 
> com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)*19:12:54*
> at 
> com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)*19:12:54*
> at 
> com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)*19:12:54*
>  at 
> com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)*19:12:54*
>at 
> com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)*19:12:54*
>  at 
> com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)*19:12:54*
> at 
> com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)*19:12:54*
> at 
> hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:264)*19:12:54*
> at 
> hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:251)*19:12:54*
>   Caused: java.lang.RuntimeException: Failed to serialize 
> hudson.model.Actionable#actions for class 
> org.jenkinsci.plugins.workflow.job.WorkflowRun*19:12:54* at 
> hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:255)*19:12:54*
>  at 
> hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:223)*19:12:54*
>   at 
> com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)*19:12:54*
>  at 
> hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)*19:12:54*
> at 
> 

Re: How to get container logs in kubernetes if user has no admin access to execute kubectl commands

2020-10-29 Thread David Karr
In general, it would be pretty silly if anyone could get access to the 
internals of a pod if they didn't have the proper authentication.

Is your enterprise using Jenkins to build the applications that you deploy 
to kubernetes?  Are those builds using kubectl to do those deployments?  If 
you can see the command lines in the build output, you can see how 
authentication is done. If that information is visible, then the enterprise 
likely considers anyone who can see that information to be trusted to 
access those pods for diagnostic information, so you should be able to do 
the same thing.

On Thursday, October 29, 2020 at 7:50:32 AM UTC-7 Kari Atari wrote:

> Not sure if this would help, since I'm using Docker, not K8, but I bet 
> there's a similar option - when I a start a container I use a -v flag to 
> specify to copy the logs to the server it's running on.  This allows me to 
> have a persistent log that won't just go away if I remove and restart the 
> container.
>
> example:
> -v /path/to/server/log/directory:/path/from/container/logs/directory
>
>
> On Wed, Oct 28, 2020 at 11:43 PM touseef  wrote:
>
>> Can anyone provide pointer on  how do i get the logs of the containers 
>> running in kubernetes without using Kubectl because i dont have an access 
>> to the kubernetes cluster.
>> Is there any loging mechanism by which i can get the logs or stdout in 
>> the container to jenkins ? Help would be greatly 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/3b38d046-c55e-4e55-b9c3-7bc1d333a821n%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/46f79f1d-4607-4556-9414-1d70ad02f3c4n%40googlegroups.com.


Re: How to get container logs in kubernetes if user has no admin access to execute kubectl commands

2020-10-29 Thread Kari Cowan
Not sure if this would help, since I'm using Docker, not K8, but I bet
there's a similar option - when I a start a container I use a -v flag to
specify to copy the logs to the server it's running on.  This allows me to
have a persistent log that won't just go away if I remove and restart the
container.

example:
-v /path/to/server/log/directory:/path/from/container/logs/directory


On Wed, Oct 28, 2020 at 11:43 PM touseef  wrote:

> Can anyone provide pointer on  how do i get the logs of the containers
> running in kubernetes without using Kubectl because i dont have an access
> to the kubernetes cluster.
> Is there any loging mechanism by which i can get the logs or stdout in the
> container to jenkins ? Help would be greatly 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/3b38d046-c55e-4e55-b9c3-7bc1d333a821n%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/CAE7w4hguR8be_JVOSwkY6hPmC1%2BBd%3D%3Do1MBznnGnqZ93UkuiRw%40mail.gmail.com.


Jenkins UI labels survey

2020-10-29 Thread Joseph Brueggen
Hello everyone,

My name is Joe—I'm a designer at CloudBees. I'm gathering some feedback 
about the Jenkins user interface.

This new survey is about Jenkins UI nomenclature. It takes only 5 minutes 
to complete, and your feedback would be greatly appreciated!

Here's the survey: https://holisticux.typeform.com/to/nMttDAgi

Thank you!

-- 
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/50135de8-9251-4f89-8a8d-aeaf6c2fabeen%40googlegroups.com.


Gitlab push is failing to jenkins server with Permission denied (publickey,keyboard-interactive) error

2020-10-29 Thread sakshira...@gmail.com
Hi all,

Could anyone help me here:

When i push my changes from local gitlab repository to jenkins , build 
execute successfully.
but when i push my changes from Gitlab front end me jenkinsbhuild fails 
with below error:
Permission denied (publickey,keyboard-interactive). it is not able to 
connect to remote server.

While it connects fine through local gitlab repository.

please help me here. 

-- 
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/7074d75d-ef40-449e-be2b-338f840b2243n%40googlegroups.com.


How to get container logs in kubernetes if user has no admin access to execute kubectl commands

2020-10-29 Thread touseef
Can anyone provide pointer on  how do i get the logs of the containers 
running in kubernetes without using Kubectl because i dont have an access 
to the kubernetes cluster.
Is there any loging mechanism by which i can get the logs or stdout in the 
container to jenkins ? Help would be greatly 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/3b38d046-c55e-4e55-b9c3-7bc1d333a821n%40googlegroups.com.


How do i get logs of docker containers in Kubernetes running in jenkins?

2020-10-29 Thread touseef
Can anyone provide me point me,  on  how do i get the logs of the 
containers running in kubernetes without using Kubectl because i dont have 
an access to the kubernetes cluster.
Is there any loging mechanism by which i can get the logs or stdout in the 
container to jenkins ? Help would be greatly 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/132bf806-e234-4f1f-9d6b-c952453dee0an%40googlegroups.com.