Jenkins slave creation for Windows server - jenkins

I am trying to use jekins for deployment of my patch so here the server on which I want to deploy is a Windows server and my Jenkins is a Aix system and also my Jenkins version is 2.9 and it's run on java 7 where as the application I am deploying has a constraint that it could only be run on java 6 which is on Windows hence I need a solution for this java 7 to to java 6 slave connection.

I have resolved this issue by just installing a java 7 on the windows server with the constraint,
but the java 7 isn't configured in the path variable i have kept a command handy with the complete path of bin directory of the java 7 installed on the windows so i can connect via slave.jar to my jenkins server giving the path and executing the slave.jar with java 7 so that i dont get a major minor version error, and later on since its not in the path further use java 6 for later processing of windows server.

Related

while starting jenkins in tomcat it shows FAIL - Application at context path [/jenkins] could not be started

I installed and strated apache tomcat on my windows 10. after that I added war file of jenkins in the web page of tomcat.
Now I am going to start the jenkins it will show the following message
I also check the compatibility version of java for jenkins and installed successfully.Then also jenkins not started

Running Junits which supports Java 8 on EC2 with Jenkins & Java 11

I have a basic question, I am trying to install jenkins on AWS EC2 ubantu instance.
I see Jenkins requires Java 11 to use newer versions - https://www.jenkins.io/doc/tutorials/tutorial-for-installing-jenkins-on-AWS/
I am planning to run junit tests which supports Java 8 on Jeknins node.
If I install Jenkins with Java 11 on EC2, does it impacts executing junits tests?
UPDATED:
Why Install automatically doesn't show list of options to select jdk versions?

Does Jenkins continue support Java1.8?

I was seeing notification in Jenkins regarding upgrading the Java version from 8 to 11 for future Jenkins release support. But I am not seeing that notification now. So little confused whether Jenkins continuing support with Java 1.8?I was getting the java support notification to stop
From the Jenkins documentation.
Java 8 or Java 11 are required for running modern versions of Jenkins.
Upgrading an existing Jenkins setup from Java 8 to Java 11? See the
upgrade guidelines.
Java 11 Docker installation instructions are included in "Downloading
and running Jenkins in Docker"
Starting with the Jenkins 2.357 weekly release, Java 11 or Java 17
will be required. Java 8 is supported on the Long Term Support release
line until the September 2022 LTS release.
Java 17 users can run the jenkins/jenkins:jdk17 Docker image.
All other Java versions are not supported.
These requirements apply to all components of the Jenkins system,
including Jenkins controller, all types of agents, CLI clients, and
other components.
Jenkins project performs a full test flow with the following JDK/JREs:
OpenJDK JDK / JRE 11 - 64 bits
OpenJDK JDK / JRE 17 - 64 bits
JRE/JDKs from other vendors are supported and may be used. See our
Issue tracker for known Java compatibility issues.
The comment by Mark Rotteveel is very important: running Jenkins with Java 11 is not a big deal, the problem is what you can build. The biggest limitation is with Maven Jobs: if you have Maven projects based on Java 8 and you use Jenkins' Maven Job for them, you'll have to change something.
See https://plugins.jenkins.io/maven-plugin/ where it says:
Jenkins >= 1.520 requires Java 6 thus Maven jobs must be launched with Java >= 6.
Jenkins >= 1.612 requires Java 7 thus Maven jobs must be launched with Java >= 7.
Jenkins >= 2.54 requires Java 8 thus Maven jobs must be launched with Java >= 8.
Jenkins >= 2.357 requires Java 11 thus Maven jobs must be launched with Java >= 11.
The same thing is said at https://community.jenkins.io/t/maven-builds-fails-after-upgrade/3850/2.
Note that the migration guide at https://www.jenkins.io/doc/upgrade-guide/2.361/ does not make evident this limitation: it says you can still use Java 8 to build your projects but it does not say that you cannot build them as Maven Jobs anymore.
Similarly this post says:
The controller and agent must run java 11. [...] Your jobs however can
run whatever they want.
But, again, this is true only if you opt out of Maven Jobs.

Jenkins 2.19.3 compatibility with Nexus 3.18

My Jenkins current version is 2.19.3 with Java 7, and I am planning to upgrade my NXRM to 3.18 which will use JAVA 8, so does my Nexus upgrade impact Jenkins and Sonar running on Java 7?
Jenkins and Sonar work with java8 with no problems.
Every one of the apps you list starts up its own jvm; they are all independent. As long as you launch the right jvm you are fine. It worries me that as a developer, you'd be asking this.
Since 2.60, Jenkins has required Java 8 jvm to run. As Jenkins 2.164, it supports running on Java 11 jvm.
Since SonarQube, LTS 6.x, I believe, it has required Java 8 jvm to run. As of LTS 7.9, Java 11 jvm is required. It will still anaylze java 8 code.
Evidently, you should really be upgrading your SonarQube and especially Jenkins instances well. Jenkins in particular has had many security improvements.

Installing hudson slave agent as a service

I'd like to set up a Hudson slave agent (v3.2.2) as a Windows service on one of my Windows nodes (running Windows 8.1 x64 with .NET 3.5 installed). As of this wiki page, there should be a File > Install as Windows Service menu option. But when I run the JNLP, there's no such option:
So: How do I install the Hudson slave agent as a Windows service?
There is a bug that has been submitted for this, Bug 427526, and also a workaround. It is related to the version of Java. I used JDK 7u11 and I got the File option and was able to install the slave as a service.

Resources