Can we configure two maven versions on jenkins - jenkins

We have two projects each using different maven and Java versions.
Currently one of these projects is already configured on Jenkins. we need to configure the other project on Jenkins as well.
Is it possible to add one more version of maven to Jenkins?
While configuring the project will it display the list of maven versions, from which I can select the required one?
Please note that I don't have admin rights and currently investigating.

With the admin rights, you can add several Maven installation:
Next, in your Maven job, you select the relevant version:
So you have to contact your Jenkins admin to solve your pb :)

Related

How to install TFS plugin on jenkins?

I want to install TFS plugin on jenkins but I cannot to do it through Manage jenkins section as my company's network is not allowing me to do it.
Can you please suggest on how I can manually download the plugin and add it on jenkins folder?
thanks in advance
If you are talking about : https://github.com/jenkinsci/tfs-plugin, then you can try to download the tfs.hpi file from Github (The latest release is currently 5.157.1) and then manually install the plugin in Jenkins:
Manage Jenkins > Manage Plugins > Advanced > Upload Plugin and select the plugin file downloaded previously (Make sure to have git-plugin installed normally first so all additional dependencies are in place).

There is no AWS Codedeploy Plugin in Jenkins

I use two different Jenkins servers(tomcat jenkins) and i was trying to install a plugin for aws codedeploy.
However, I couldn't find it in the list of a Jenkins but another one has it.
Why the plugin libraries are different? even though i install them in a same way.
Also, How can i add a particular plugin in my Jenkins server?
Thank you.
Why the plugin libraries are different?
The plugin libraries shouldn't be different.
Which way did you search the plugin (jenkins gui, in the web)? Both your servers are on the same Jenkins version?
Also, How can i add a particular plugin in my Jenkins server?
I do it always via the GUI as described here: https://jenkins.io/doc/book/managing/plugins/

How to use a script shell or a jenkins plugin to create or to delete a sonarqube project?

I have many project of Sonarqube, each project correspond to a a version of my software.
At the same moment, I save the last 5 version of my software. I use jenkins for integration continue.
My aims it to delete or to create a sonarqube project by a script or a jenkins plugins
Thank you
Projects are created on their first analysis. If you need to create them before that, you can Provision them via the UI or via web services, which will also let you delete projects: https://sonarqube.com/web_api/api/projects
So your script simply needs to invoke the web services with the proper permissions.

How to promote builds to repository in jenkins multiple branch project

I need to promote debian packages build in jenkins to the repo (aptly.. maybe artifactory). However, the available plugins seem to be broken for multiple branch projects. Has anybody found a solution to get around this?
You can use Artifactory Jenkins plugin for that. Define the deb files you want to upload (metadata will be generated by Artifactory for you).
Please note that you need to attach some properties to the uploaded files. From Jenkins you don't need to craft the URL, instead add the properties in the "Deployment properties" textfield.

How to integrate PMD, Maven and Hudson?

I tries one scenario to integrate these tools, but it giving unbelievable output. What I did:
I did not configure or install PMD in Hudson.
I configured PMD in my parent pom.
I run goals (clean site) the in Hudson job, but it running only last sub project.
I check log in console, it has:
some svn update log
Parsing POMs
and directly generating reports for last sub project.
I have same svn checkout workspace in Eclipse, it working and generating reports for all parent and child projects. Actually, after verify in Eclipse only, I try to verify in Hudson.
And after try to configure PMD in Hudson, but I did not find any help online to do that.
We are using jenkins and maven, artifactory and sonar (which contains PMD, Checkstyle, Findbugs and others).
I didn't set it up however there are plugins for (nearly) everything:
Jenkins Artifactory Plugin
Jenkins Maven Plugin
Jenkins Sonar Plugin
But it is possible to do it your way and use PMD "directly". Hava a look here...

Resources