Re: How to configure a Jenkinsfile pipeline for a Rails project with a PostgreSQL DB in Docker?

2020-05-27 Thread Ricardo Amaro
Hi Polak. Thank you for your reply, but I don't see how the link you shared will help me. It is related with containerizing a Rails app, and doesn't refers the configuration of a Jenkinsfile. On Wednesday, May 27, 2020 at 7:31:24 AM UTC+1, Polak wrote: > > Take a look at this: > https://www.

Groovy pipeline to lock a resource on a node that is online

2020-05-27 Thread 'monger_39' via Jenkins Users
Hi, I have several jobs that require exlusive access to some resource of which a given agent node can have multiple, but limited to some maximum number which is less than nr of executors of the agent. We solve this by using the Lockable Resources plugin. We define a resource per what is availabl

Re: How to configure a Jenkinsfile pipeline for a Rails project with a PostgreSQL DB in Docker?

2020-05-27 Thread Piotr Bracha
Ok, sorry. Probably I didn't understand you properly but I thought you want to run a dockerized rails app based on postgres db. Could you tell me what is a goal you want to reach? śr., 27 maj 2020 o 10:08 Ricardo Amaro napisał(a): > Hi Polak. > > Thank you for your reply, but I don't see how the

Re: How to configure a Jenkinsfile pipeline for a Rails project with a PostgreSQL DB in Docker?

2020-05-27 Thread Ricardo Amaro
Ok, let me try to explain better. I have a RoR app that uses a Postgres DB. I want to use Jenkins to automate the execution of the test suite of that RoR app. Currently, I'm being unable to configure a proper Jenkinsfile for it, because I don't understand how to tell Jenkins to use a container

Re: How to configure a Jenkinsfile pipeline for a Rails project with a PostgreSQL DB in Docker?

2020-05-27 Thread Piotr Bracha
I did this in this way. I used Jenkinsfile with docker-compose commands inside like here - my Jenkinsfile - https://pastebin.com/CgT1bn2K and here - my docker-compose.yml - https://pastebin.com/FfLaX1xH śr., 27 maj 2020 o 11:34 Ricardo Amaro napisał(a): > Ok, let me try to explain better. > > I

Re: How to configure a Jenkinsfile pipeline for a Rails project with a PostgreSQL DB in Docker?

2020-05-27 Thread Yilmaz Gunduzalp
If you want to run integration tests against a dB you. Need to run that db yourself somewhere.Jenkins is a deployment tool not for setting up a dB. You have to add your dB credentials in Jenkins host and connect to dB when executing tests Or you might just mock your database in your tests so d

slave status as offline on another jenkins master server

2020-05-27 Thread Om Prasad Surapu
Hi All, We have a jenkins master running with 2.13 version on EC2 instance. As part of Upgrade, we took AMI of existing jenkins master and provisioned instance and upgraded jenkins to higher version. After upgrade, all the slave nodes status showing as Idle but few days later they are offline

Re: slave status as offline on another jenkins master server

2020-05-27 Thread Ivan Fernandez Calvo
Do you mean you have the same agent connected to two different masters with different versions of the core and using the same user with the same home? if so, this is a miracle that works, you are sharing same files between two different instances of Jenkins core that also are in different versio

Re: viewing the public key for a ssh pki credential?

2020-05-27 Thread Ivan Fernandez Calvo
You can make groovy magic on the Jenkins console, grab the credential, and extract the public key, but sounds odd. but this pipeline make the job for any credential and it is easy :D pipeline { agent any parameters { credentials credentialType: 'com.cloudbees.jenkins.plugins.sshcred

RE: viewing the public key for a ssh pki credential?

2020-05-27 Thread Jason Pyeron
Thanks, I am going to look at JENKINS-60215, and see if I can patch it. From: jenkinsci-users@googlegroups.com On Behalf Of Ivan Fernandez Calvo Sent: Wednesday, May 27, 2020 12:47 PM To: Jenkins Users Subject: Re: viewing the public key for a ssh pki credential? You can make groovy magi

Re: How to get a list of jobs that are integrated with SonarQube

2020-05-27 Thread Vijay Gongle
Hi Jan/Dirk, I used the below script and I'm getting all the plugins list that jobs are using but not the actual job name. Can you please help me how to tweak it. When I run the below script I get the results which shows " org.quality.gates.jenkins.plugin.QGPublisher@75f89c52" along with other suc

Re: How to get a list of jobs that are integrated with SonarQube

2020-05-27 Thread Jan Monterrubio
Try printing like this: println(“${job.getFullName()} has soñar configuration”) It’s groovy interpolation. If that doesn’t work maybe just job.getName might do it. On Wed, May 27, 2020 at 15:27 Vijay Gongle wrote: > Hi Jan/Dirk, > I used the below script and I'm getting all the plugins list th

Re: How to get a list of jobs that are integrated with SonarQube

2020-05-27 Thread 'Dirk Heinrichs' via Jenkins Users
Am Mittwoch, den 27.05.2020, 21:33 -0500 schrieb Jan Monterrubio: > Try printing like this: > println(“${job.getFullName()} has soñar configuration”) The script already has a line for this. Bye... Dirk -- Dirk HeinrichsSenior Systems Engineer, Delivery PipelineOpenText ™ Discovery | Recomm