Re: Push sources checked out from Gerrit to Git on jenkins Job using pipeline

2020-01-13 Thread Dominic Espiritu
Hi Björn Pedersen, Thanks for the reply, I will try the first approach you mentioned, I might also take a look at the gerrit replication feature in the future since I have one repository that is modified completely in gerrit and should not be synced with my Git, Im just wondering of its possible w

Re: Need Help in executing Rest API in Jenkins Job

2020-01-13 Thread 'Björn Pedersen' via Jenkins Users
Hi, from your GIT Bash mention I assume that you are running on Windows. Are you sure jenkins is using your git bash as shell, and not either another bash or powershell? Or is it even running on a different host, where may some programms (curl/sed) are not available? Try running just curl to

Re: Push sources checked out from Gerrit to Git on jenkins Job using pipeline

2020-01-13 Thread 'Björn Pedersen' via Jenkins Users
Hi, Checkout from the source with scm and just add a shell step that does the push. Per default the scm implementation also will use the installed commandline git client. If you need credentials for the push, you can wrap the shell step in a withCredentials. But maybe just using the gerrit rep

Re: GIT jenkins integration issues -Permission denied(Public Key)

2020-01-13 Thread Mark Waite
The message means that the remote repository is secured by a private key and will be cloned using the git ssh protocol. That private key needs to be defined in a Jenkins credential and the credential needs to be used in the Jenkins job definition. Jenkins credentials are best maintained by the Je

Push sources checked out from Gerrit to Git on jenkins Job using pipeline

2020-01-13 Thread Dominic Espiritu
Hi, I would just like to ask if possible to push updates from my Gerrit repository to Git repository using SCM in jenkins? I only tried doing this on a manual steps from my terminal window, Any suggestions would be a good help. Thanks, Dominic -- You received this message because you are sub

GIT jenkins integration issues -Permission denied(Public Key)

2020-01-13 Thread jaychandran subramanian
Hi , While integrating GIT and Jenkins , getting the below error . Failed to connect repository : Command "git ls-remote -h git@remote-server:/home/fab.git HEAD" returned status code 128. stderr:git@ip Permission denied (Public Key) Kindly let us know the resolution . Thanks Jay -- You rec

Need Help in executing Rest API in Jenkins Job

2020-01-13 Thread phanindra m
Hi, I'm Trying to Run Rest API in Jenkins Job, but facing few issues. below command will fetch the session id of an application and stores it in a var variable. this command is working fine in GIT Bash, but when i trying to run this command in Execute Shell option in jenkins it is not working.

Re: kubernetes-plugin and PersistentVolumeClaims

2020-01-13 Thread Usov Dmitri
https://github.com/jenkinsci/kubernetes-cd-plugin kubernetes-cd plugin has the capability to create a pvc, the recent plugin version has got fixed an issue with subsequent invocation of a yaml that creates/updates a pvc. Regards, Dmitri On Tuesday, January 14, 2020 at 12:38:46 AM UTC+3, scotty

Re: JobDSL: an example of configuring a bitbucket source trait of bitbucketForkDiscovery in the multibranchPipelineJob is wanted

2020-01-13 Thread Usov Dmitri
a fully working example will suite On Tuesday, January 14, 2020 at 12:47:25 AM UTC+3, Victor Martinez wrote: > > You can use the dynamic DSL that it's specific for your installation, more > precisely > /plugin/job-dsl/api-viewer/index.html#method/jenkins.scm.api.SCMSource$$List.bitbucket > > <

Re: JobDSL: an example of configuring a bitbucket source trait of bitbucketForkDiscovery in the multibranchPipelineJob is wanted

2020-01-13 Thread Victor Martinez
You can use the dynamic DSL that it's specific for your installation, more precisely /plugin/job-dsl/api-viewer/index.html#method/jenkins.scm.api.SCMSource$$List.bitbucket Further det

kubernetes-plugin and PersistentVolumeClaims

2020-01-13 Thread Scott Grissom
I have a use case where a PersistentVolumeClaim is used to clone a volume snapshot, which is a prebuilt m2 repository. A PVC object needs to be created before creating the Pod object, then deleted after the pod finishes. Using kubernetes-plugin, it seems that the yaml attribute in the declarati

Re: Jenkins build status always shows success

2020-01-13 Thread Vijay Gongle
Hello @Jerome @Rajendra: Below is the sh script from the build step of the job: #!/bin/bash TIMESTAMP=$(date "+%Y_%m_%dT%T") #ssh -o ServerAliveInterval=100 ec2-u...@xxfff.f.fff -tt "cd /home/ec2-user/xxx-eportal2-myportalui" #scp -r $WORKSPACE/* ec2-u...@xx224.9.xxx :/home/ec2-user/xxx-eportal2

RE: Jenkins build status always shows success

2020-01-13 Thread Jérôme Godbout
Just asking, is the shell script (bat or sh) argument are set returnStatus = false, returnStdout = false or if the default did changes into recent release? If not into Jenkinsfiles, is the API into the plugin did modify anything? Maybe this sound obvious but sound like something like that did cha

JobDSL: an example of configuring a bitbucket source trait of bitbucketForkDiscovery in the multibranchPipelineJob is wanted

2020-01-13 Thread Usov Dmitri
Hi All, I need an example of a JobDSL that can create a Jenkins multi branch pipeline job that is working against Bitbucket and configures the option of bitbucketTrustTeam. An example that works for me with the "configure" DSL command follows: configure { it / 'sources' / 'd

Re: Access build duration in 'freestyle' jobs, for use in mail notifications

2020-01-13 Thread SAIFUL ALAM
Yes sir On Mon, 13 Jan 2020, 7:29 am Ramanathan Muthaiah, wrote: > Hi Folks, > > New Year wishes to all of you. > > Few weeks back, I migrated a production instance of Jenkins from v2.32 > (legacy infra inherited few years back) to v2.190. > > Post successful upgrade, some of the jobs, hosted in