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

2020-05-26 Thread Piotr Bracha
Take a look at this: https://www.digitalocean.com/community/tutorials/containerizing-a-ruby-on-rails-application-for-development-with-docker-compose wt., 26 maj 2020 o 19:47 Ricardo Amaro napisał(a): > Hello to all, > > I would like to configure a Jenkinsfile for a RoR project with a > PostgreSQ

Re: [EXTERNAL] - Re: How to get a list of jobs that are integrated with SonarQube

2020-05-26 Thread 'Dirk Heinrichs' via Jenkins Users
Am Dienstag, den 26.05.2020, 12:51 -0400 schrieb Vijay Gongle: > I ran the above script and I get the below result with two of the job > names which has SonarQube configurations. But I'm sure there are even > more. > > Result* has SonarQube configuration.* has SonarQube > configuration.g

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

2020-05-26 Thread Jan Monterrubio
> Do I have to run it separately or it can be combined in the above script? you can combine it: if (buildWrappersList() { // the logic for the build wrappers } if (publishersList() { // find sonar publisher } On Tue, May 26, 2020 at 10:06 PM Vijay Gongle wrote: > Thanks a lot Jan and Dirk.

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

2020-05-26 Thread Jan Monterrubio
That looks like it would be in the set of Publishers? https://javadoc.jenkins.io/plugin/maven-plugin/hudson/maven/MavenModuleSet.html#getPublishers-- So maybe try iterating through the publishers and if one of them is an instance of hudson.plugins.sonar.SonarPublisher , then you found another thin

Re: Authentication issue with Gerrit Code Review plugin 0.4.1

2020-05-26 Thread John Shield
Hi Luca, I want to say I've greatly appreciated your help with finding out what was wrong. The problem was because we were using the ssh credentials. When I got our IT department to make the https credentials and switched our build pipeline over to that, it all started working. Can't thank yo

Jenkins is directly going on smalLogout page

2020-05-26 Thread Ravindra verma
Hi All, I am in a problem where my jenkins is directly going on logout page https://jenkinsurl/smalLogout , I have compared things from OKTA and jenkins side but unfortunately there is no recent change or upgrade . Can someone please guide me , what i can do in this case ? Thanks Ravindra V

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

2020-05-26 Thread Vijay Gongle
Thanks a lot Jan and Dirk. The below script worked for about 50%. Looking at the results, found that there are missing parts. import hudson.model.* import hudson.plugins.sonar.* import jenkins.model.* // Iterate over all jobs Jenkins.instance.getAllItems(AbstractProject.class).each {job -> def f

Re: Authentication issue with Gerrit Code Review plugin 0.4.1

2020-05-26 Thread John Shield
Hi Luca, I took a look into these suggestions. It seems like I'll need to get back to you after asking for assistance from my work colleagues. 1. I switched to the https URL and got authentication failures in the Jenkins interface. I'm assuming that credentials weren't enabled for https, so I

Re: Authentication issue with Gerrit Code Review plugin 0.4.1

2020-05-26 Thread Luca Milanesio
> On 27 May 2020, at 00:34, John Shield wrote: > > Thanks Luca, > > I had a look at the SCM credentials we're using for the pipeline and the > "Repository URL" in the SCM. As far as I can tell it is setup correctly. The > URL is the one for the authenticated access, and the credentials provi

Re: Authentication issue with Gerrit Code Review plugin 0.4.1

2020-05-26 Thread John Shield
Thanks Luca, I had a look at the SCM credentials we're using for the pipeline and the "Repository URL" in the SCM. As far as I can tell it is setup correctly. The URL is the one for the authenticated access, and the credentials provided are being used by the SCM checkout. The plugin still seem

Re: Authentication issue with Gerrit Code Review plugin 0.4.1

2020-05-26 Thread Luca Milanesio
> On 26 May 2020, at 17:10, John Shield wrote: > > Dear All, > > Looking for some help understanding how to assign credentials for the Gerrit > Code Review Plugin to work. > > Aside from that specific plugin, we're able to build and get verification > tags just fine. The git successfully ch

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

2020-05-26 Thread Jan Monterrubio
It seems that we do something like this to check if its gonna respond to that method: if(project.respondsTo('getBuildWrappersList')) { // do other things here } MavenModuleSet doesn't have a buildWrappersList: https://javadoc.jenkins.io/plugin/maven-plugin/hudson/maven/MavenModule.html MavenModule

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

2020-05-26 Thread Vijay Gongle
Ya sure, I haven't tweaked it honestly as I'm not aware of Groovy. So I have pasted the below script provided by Drik. import hudson.model.* import hudson.plugins.sonar.* import jenkins.model.* // Iterate over all jobs Jenkins.instance.getAllItems(AbstractProject.class).each {job -> def fName =

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

2020-05-26 Thread Jan Monterrubio
at Script1.run(Script1.groovy:6) do you mind copy pasting your script here so we can check it out (with whatever modifications you have). Based on what Dirk said, you might have to tweak it: "Paste it into the Script Console and see how it works. We don't use SonarCube ourselves, so it m

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

2020-05-26 Thread Ricardo Amaro
Hello to all, I would like to configure a Jenkinsfile for a RoR project with a PostgreSQL database, but the syntax and the documentation is driving me crazy. As I understand, if I want my RoR app to run in a Docker container and my Postgres Db to run in another container, I need to use somethin

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

2020-05-26 Thread Vijay Gongle
All the jobs has similar configurations for SonarQube as posted in the above config.xml It throws the below error: groovy.lang.MissingMethodException: No signature of method: hudson.maven.MavenModule.getBuildWrappersList() is applicable for argument types: () values: [] at org.codehaus.gr

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

2020-05-26 Thread Jan Monterrubio
Looks like the script died after some job, can you print it’s name and check it’s config? Maybe we need to add a null check before we try to call getBuildWrapperList or the config type is doffeeent! On Tue, May 26, 2020 at 11:51 Vijay Gongle wrote: > Thank you Drik/Jan. > I ran the above script

Authentication issue with Gerrit Code Review plugin 0.4.1

2020-05-26 Thread John Shield
Dear All, Looking for some help understanding how to assign credentials for the Gerrit Code Review Plugin to work. Aside from that specific plugin, we're able to build and get verification tags just fine. The git successfully checks out from gerrit using the credentials defined for the check

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

2020-05-26 Thread Vijay Gongle
Thank you Drik/Jan. I ran the above script and I get the below result with two of the job names which has SonarQube configurations. But I'm sure there are even more. Result * has SonarQube configuration. * has SonarQube configuration. groovy.lang.MissingMethodException: No signature of m

[JCasC] Integration with the plugin 'Micro Focus Application Automation Tools'

2020-05-26 Thread Alberto Scotto
Hi, We are looking for a way to configure the plugin Micro Focus Application Automation Tools with JCasC. The yaml generated by clicking on the View button does not contain anthing about the aforementioned plugin. Can you ple

Re: plugins downloaded using http instead of https?

2020-05-26 Thread Nick Stolwijk
Hi Harald, It looks like this is a known issue. For a possible solution, see [1]. Hth, [1] https://www.north-47.com/knowledge-base/update-jenkins-plugins-behind-a-corporate-proxy/ Nick Stolwijk ~~~ Try to leave this world a little better than you found it and, when your turn comes to die, you

plugins downloaded using http instead of https?

2020-05-26 Thread Harald Dunkel
Hi folks, I had to open my firewall for port 80 to allow Jenkins to download plugins. Is this as expected? I had hoped that port 443 is sufficient. Version is 2.238 on Debian. Regards Harri -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

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

2020-05-26 Thread Jan Monterrubio
Thanks a lot Dirk, I was trying to write this on notepad without the scriptconsole (we also don't use sonar and i didn't have an instance available on my personal machine) On Tue, May 26, 2020 at 6:31 AM 'Dirk Heinrichs' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Am Samstag, d

Error While connecting from Slave to Master

2020-05-26 Thread NIKHILESH SAGGERE
Hi, I am trying to configure the remote agent on the windows virtual machine. The jenkins master is running on ubuntu. I get the following message when i launch the slave_agent.jnpl. There are other 2 jobs which are routed to this remote PC, via other slave agents, it is working fine. I have c

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

2020-05-26 Thread 'Dirk Heinrichs' via Jenkins Users
Am Samstag, den 23.05.2020, 18:43 -0700 schrieb Vijay Gongle: > We have plenty of Jenkins job and most of them are running with > SonarQube for analysis. > > > > How to find out; how many such jobs are running with SonarQube ? This is derived from a script I've used in the past to modify all A