Connectivity of SonarLite from STS - sonarqube

I have standalone application. When I try to connect to sonarqube I am getting be below error
"sonarqube server has version 5.6.7 version should be greater or equal to 6.7"
C

The following refers to the IntelliJ plugin, but the issues are the same: https://community.sonarsource.com/t/incompatible-sonarqube-server-version-error/15820 .

Related

How to add a JRE 1.8 into Eclipse Installer JRE?

I am trying deploy my Spring Boot application to Elastic Beanstalk.
The problem that I am facing right now is, my application is developed with Tomcat 9, Java 13 and Project Facet 4.0.
So when I deployed to a AWS environment, I kept getting error. After researching, I found out AWS only support Tomcat 8, Java 8 and Project Facet 3.0.
I managed to change Project Facet 4.0 to 3.0.
But I can't add Java 8 to the project.
I downloaded the JDK 8 from Oracle, and tried open jdk-8u251-macosx-x64.dmg and run JDK 8 Update 251.pkg.
The system keeps giving me error that: "JDK 8 Update 251.pkg" can't be opened because Apple cannot check it for malicious software. This software needs to be updated.
Anyone know how to fix this problem so that I can run JRE 8 on eclipse?
Here is picture the problem that I have when I deploy the app to AWS.
An internal error occurred during: Updating AWS Elastic Beanstalk environment
Here is the thread that I tried to follow but without success:
https://github.com/aws/aws-toolkit-eclipse/issues/149.
Can you elaborate where exactly are you seeing the error? While running the JDK package or while configuration the JDK within Eclipse?
Nevertheless, I suppose your main requirement is to get your Eclipse to use Java 8.
It can be done in multiple ways.
Usually you can change Java compiler level to 1.8 from Project Settings even if you're using Java 13.
If you're using Maven, you can specify compiler source and target to Java 1.8
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Alternatively, you can download the JDK 8 zip instead of installer, unzip to any location and use that in Window > Preferences > Java > Installed JREs. Be sure to mark that one as default JRE.

How to migrate from Jenkins-core version 1.580.3 to 2.X

I have a jenkins plugin created with version 1.580.3 which is made to a hpi file and uploaded to jenkins.Now that I need to migrate to jenkins 2.X version I was not able to do that.Currently am using jenkins-core ,jenkins-war,jenkins-test-harness set to 1.580.3 .Now when I migrate to version 2.X I was able to correct my unit tests but my integration tests are failing saying null pointer exception .no class definition found error in JenkinsRule.class and FreeStylePrject.class when version is set to 2.0.
No links could save me.CAn someone guide me here?
Any help is appreciated
"No class definition found error" is most probably due to a missing plugin or an incompatible one with your 2.x version. Check in the update center (Manage Jenkins > Manage Plugins) on your Jenkins server if a compatible version of your 1.580.3 plugin is available.
When we are doing Jenkins upgrade, we always make a backup. Then we update the war file, update all compatible plugins and restore the backup if the upgrade is unsuccessful.

Unable to add Pivotal Server in Spring tool suite

I am using Mac PC and "Spring Tool suite" latest version based on eclipse "4.11.0"
I want to run the project using pivotal server, I am trying to add pivotal server.
Because their is no server added to my project getting error as bellow
"The specified server is not valid. The .tc-runtime-instance file is missing."
I have tried but Not working
https://tcserver.docs.pivotal.io/3x/docs-tcserver/topics/install-getting-started.html#homebrew
MacBook Air OS- MacOS Mojave version-10.14.4
Java jdk version 1.8
Kindly Help me on this

SonarQube compatibility with Jenkins

We are using sonarqube(5.1.2) and jenkins(2.51) to run code analysis. Now we are planning to upgrade sonarqube to version 5.6.4.
Do we also need to upgrade Jenkins ?
No you don't have to.
Sonar is an independent tool, Jenkins is responsible only for running maven/gradle script, that will 'feed' sonar with data. Just make sure you have same credentials for new sonar and it should be fine.
You could consider upgrading Sonar plugin version also.
Just check whether the sonar plugin installed in Jenkins will support the new Sonarqube version else you will have to upgrade the plugin.

Can sonar build java 6 and java 7 projects on a single server?

We have a server that runs Sonar and previously only had Java 6 installed and everything worked fine. We now have a Java 7 project and are encountering the "Unsupported major.minor version 51.0" version when the Maven surefire plugin tries to analyze the project.
Is there a way to specify the Java version sonar should use for a specific project?
Java 7 is already installed on the server.
Thanks in advance!
Never mind found the JDK option under Advanced in the Jenkins configuration for the job.

Resources