Re: Need help debugging ChannelClosedExceptions

2018-11-08 Thread Martin d'Anjou
Hi, I cannot help directly, but last summer we had a GSoC project to implement remoting over Kafka as a fault tolerant communication layer in Jenkins. If you keep having comms breakdown, you could head over to the Remoting Gitter Chat

Where to find progress on the new pipeline engine?

2018-11-08 Thread Cuong Tran
I just watched the presentation from Jenkins World 2018 titled "Solving Pipeline Performance Problems with Systems Theory and How to Apply it to DevOps" [1] and it refers to the new implementation of the pipeline engine that seems to solve many the pain points I experience. Does anyone know

Re: Need help debugging ChannelClosedExceptions

2018-11-08 Thread Daniel Weber
Hi Viacheslav, thanks for your reply! Yes, I also know this Wiki page. But I saw no indication that the ping thread fails (checked the logs) and we're not using ssh agents. So this also did not help. But anyhow we disabled the ping thread on one of our masters but still see this issue. BR,

Error: Batch scripts can only be run on windows nodes (on windows machine)

2018-11-08 Thread Faad Sayaou
Hello, I am having this strange error even though i am running jenkins on a windows machine (in a docker container). The script works perfectly on my second windows machine (jenkins installed locally and not in a container as the first machine) The error states: *java.io.IOException: Batch

Re: How to use environment variable in Jenkins Pipeline build?

2018-11-08 Thread ZillaYT
I got it answered in stackoverflow How to use environment variables in a Jenkins pipeline job? I just had to uncheck the "Lightweight checkout" box at the bottom of that block, and it

Re: How to use environment variable in Jenkins Pipeline build?

2018-11-08 Thread Mark Waite
That's a good clarification. I believe there is a known bug that the git plugin does not expand variable references in some of the configuration fields. Use a multibranch Pipeline instead, then you can let the Pipeline script expand the variable, and you won't have a confusing mix of changes in

Re: How to use environment variable in Jenkins Pipeline build?

2018-11-08 Thread ZillaYT
Just to be clear, this is the text box in the job configuration page where I want to use an environment variable. [image: Screen Shot 2018-11-08 at 1.37.35 PM.png] On Thursday, November 8, 2018 at 2:19:06 PM UTC-5, ZillaYT wrote: > > It should work, but doesn't! > > I define my environment

Re: How to use environment variable in Jenkins Pipeline build?

2018-11-08 Thread ZillaYT
It should work, but doesn't! I define my environment variable in Manage Jenkins->System Configuration, Global Properties, Environment variables. I use the variable in other jobs so I know the variable definition works! Thanks. On Thursday, November 8, 2018 at 12:45:18 PM UTC-5, Cuong Tran

Fwd: Recommended Plug in for migrating jobs between 2 jenkins instances

2018-11-08 Thread Nicolas Grossi
Hi team: Is there any plug in that can be used to expport/import jobs form one jenkins instances to another ? 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

Re: How to use environment variable in Jenkins Pipeline build?

2018-11-08 Thread Cuong Tran
Where do you define your "environment variable"? It should work as ${BRANCH_TO_BUILD} if you define BRANCH_TO_BUILD under global environment variables, folder, inside your pipeline, etc. On Thursday, November 8, 2018 at 8:56:38 AM UTC-8, ZillaYT wrote: > > Someone suggested using

Pipeline - Docker Credentials "WARNING! Your password will be stored unencrypted"

2018-11-08 Thread Carles Capdevila Tejada
I'm surprised that nobody else mentioned this. I've googled it several times and searched through this forum but most of the results were just related to failed login attempts, and none concerning this specific issue. I'm getting this warning when executing the *docker.withRegistry(*, *)

How to use environment variable in Jenkins Pipeline build?

2018-11-08 Thread ZillaYT
I have a Jenkins Pipeline job which uses "Pipeline script from SCM" as my pipeline. One of this block's parameters is "Branch to build" of course. How can I used an environment variable for the text block? I tried, for example , $branchToBuild, ${branchToBuild} or "${branchToBuild}" and it

Re: Groovy Script to create Ansible Docker and run Ansible script on it.

2018-11-08 Thread Ajay Sharma
Hi Slava, Thanks for the reply. For bash file, which Jenkins PLUGINS should do i need to install ? As the bash script has to fetch WAR File from a remote NEXUS repo and then put the WAR file on remote TOMCAT server. Regards, Ajsh On Thursday, November 8, 2018 at 5:50:41 PM UTC+5:30, Slava

Zipping build artifacts on jenkins

2018-11-08 Thread Faad Sayaou
Hello, I am having difficulties zipping results from a build process in a jenkins pipeline. As of now, I am getting just an empty zipped directory called HelloJenkins.zip. The build result is under *HelloJenkins/bin/release* and I will like to zip the entire zip folder. Below is my code

Re: cannot create user in jenkins

2018-11-08 Thread dlahr
Thank you - I opened up the developer console when I tried this, but could not figure out what part of the network was relevant. I tried googling but I'm not familiar with this so I probably didn't use the right terms. Can you give me more specific advice on how to investigate this? Maybe

Re: Need help debugging ChannelClosedExceptions

2018-11-08 Thread Viacheslav Dubrovskyi
Hi Daniel, Did you read https://wiki.jenkins.io/display/JENKINS/Remoting+issue ? 08.11.2018 14:13, Daniel Weber пишет: Hi all, (Note: This is a copy from my post which was originally done in Jenkins-dev, where it was wrong). we are trying to find the root cause for ChannelClosedExceptions

Re: Groovy Script to create Ansible Docker and run Ansible script on it.

2018-11-08 Thread Viacheslav Dubrovskyi
Hi Ajsh , IMHO much easy use bash for this. 08.11.2018 08:22, shajay12 пишет: Hi Everyone, I was trying to write a GROOVY SCRIPT to create a ANSIBLE DOCKER container and run ansible scripts to transfer WAR files from some location to TOMCAT server. Please let me know some resource, where i

Need help debugging ChannelClosedExceptions

2018-11-08 Thread Daniel Weber
Hi all, (Note: This is a copy from my post which was originally done in Jenkins-dev, where it was wrong). we are trying to find the root cause for ChannelClosedExceptions we keep getting in about 10% of our builds (which is far too often). We use one-time agents deployed in AWS (instances

Re: browsing file

2018-11-08 Thread yossibr9876
Thanks Rajendra !!! On Thursday, November 8, 2018 at 12:00:03 PM UTC+2, rajendraprasad reddy wrote: > > All you need to do is to implement a java/groovy script code to connect > windows machine from jenkins machine which is running on Ubuntu machine. > > This script acts as a client and

Re: Jenkins dashboard report with customization

2018-11-08 Thread RAJENDRA PRASAD
Hi Tripti, You are correct there is no plugin that can help you to create a custom dashboard specified by you. All you need to write a groovy script to access Jenkins job history and prepare report according to your need First get list of jobs via groovy script:

Re: browsing file

2018-11-08 Thread RAJENDRA PRASAD
All you need to do is to implement a java/groovy script code to connect windows machine from jenkins machine which is running on Ubuntu machine. This script acts as a client and connects to remote machine and lists the files and even you can do transferring files via SFTP. Following link can

Re: browsing file

2018-11-08 Thread yossibr9876
my goal is to copy all the files under the selected folder on the client machine On Thursday, November 8, 2018 at 9:56:56 AM UTC+2, yossibr9876 wrote: > > Hi, > > I whould like to create a Jenkins job that can browsing a directories or > files in the client hard disk (c:) > > BR > Yos > --

Groovy Script to create Ansible Docker and run Ansible script on it.

2018-11-08 Thread shajay12
Hi Everyone,I was trying to write a GROOVY SCRIPT to create a ANSIBLE DOCKER container and run ansible scripts to transfer WAR files from some location to TOMCAT server. Please let me know some resource, where i can search such script or get an idea about it. Thanks in Advance. Regards,Ajsh --

Re: browsing file

2018-11-08 Thread yossibr9876
Thanks Rajendra !! no - jenkins on the cloud (linux ubuntu). I want to see a choosen folder on the client machine (windows) BR Yos On Thursday, November 8, 2018 at 11:04:56 AM UTC+2, rajendraprasad reddy wrote: > > Ok then , is Jenkins instance running on the same machine? > > Thanks, >

Re: browsing file

2018-11-08 Thread RAJENDRA PRASAD
Ok then , is Jenkins instance running on the same machine? Thanks, Rajendra On Thu, 8 Nov, 2018, 14:30 yossibr9876 I mean like the File Parameter , I need a parameter directory . > > > > On Thursday, November 8, 2018 at 9:56:56 AM UTC+2, yossibr9876 wrote: >> >> Hi, >> >> I whould like to

Re: browsing file

2018-11-08 Thread yossibr9876
I mean like the File Parameter , I need a parameter directory . On Thursday, November 8, 2018 at 9:56:56 AM UTC+2, yossibr9876 wrote: > > Hi, > > I whould like to create a Jenkins job that can browsing a directories or > files in the client hard disk (c:) > > BR > Yos > -- You received

Re: browsing file

2018-11-08 Thread yossibr9876
thanks a lot On Thursday, November 8, 2018 at 10:30:47 AM UTC+2, rajendraprasad reddy wrote: > > Do you want to write a script or job to browse files client hard disk C:\ > drive ??? > > You mean your script needs to list the files of client hard disk? Or you > want to browse files on

Re: browsing file

2018-11-08 Thread yossibr9876
thanks a lot On Thursday, November 8, 2018 at 10:19:58 AM UTC+2, Robert Rajendra wrote: > > if the client system is unix you can use execute shell step and write the > commands there so every time when your job will run it will execute the > commands written in that terminal > > *Robert

Re: browsing file

2018-11-08 Thread RAJENDRA PRASAD
Do you want to write a script or job to browse files client hard disk C:\ drive ??? You mean your script needs to list the files of client hard disk? Or you want to browse files on client harddisk? If your requirement is browsing files on client hard disk , I don't think it is possible via

Re: browsing file

2018-11-08 Thread Robert Rajendra
if the client system is unix you can use execute shell step and write the commands there so every time when your job will run it will execute the commands written in that terminal *Robert Rajendra* Associate Network/Server Support Engineer IT Hands P: +91 863.087.3094 <+91%2086308%2073094> W: