Launch agent via execution of command on the master options not found in jenkins Slave Setup - jenkins

I was using Jenkins 1.7.4 version in RHEL Linux server. I can able to configure the slave using "launch agent via execution of command on the master" option during slave setup.
Now we have upgraded jenkins to 2.121.1 version. Now we unable to find that option in the upgraded version.
How to fix this issue.

Manually I Installed command-launcher, jdk-tools plugin. Then it works.

Related

hudson.remoting.Channel$CallSiteStackTrace: Remote call to docker2

while running the jenkins job I got above error, I found jenkins agent is active and connected to master. we used linux vm as a jenkins-agent(docker2). Java version is 1.8.0_222, jenkins version is 2.332.3. Please check the above error for more details.
I tried updating java version, restarted jenkins agent by killing jenkins process on vm, rebooted the respected vm(docker2) ,updated jenkins git plugin , ping the master node from agent node (docker), curl the git repo from agent machine (docker2).
Expecting to able to call docker2 agent and complete job configuration as expected.
please help me out of this, thank you in advance

Unable to run groovy scripts with latest jenkins version

I am in the process of upgrading jenkins server to latest LTS version (2.204.2 to 2.251.2) in my current work environment.
In present scenario jenkins installation and configuration is an automated process via chef.
The problem starts here :
i need to upgrade my jenkins server to latest LTS version via chef cookbook
remoting option has been obsolete in latest jenkins version
my present cookbook uses jenkins_script resource (using jenkins 6.0 cookbook from supermarket) to run groovy scripts
i am able to upgrade my jenkins server but unable to execute groovy scripts via jenkins-cli, its picking remoting option all the time and failing even though its obsolete in latest version
Is there any automated way to change protocol from remoting to ssh/http when chef client runs
.
Any valuable inputs will be helpful

Update Jenkins with selected plugins

I have got a update for Jenkins, current version (Jenkins ver. 2.89.3) to (2.107.2). That includes the update on ansible plugin, which i dont want to do it because the latest version of ansible plugin is not compatible to my environment. How to upgrade Jenkins excluding that particular ansible plugin changes
OS: Rhel7
current version:Jenkins ver. 2.89.3
In my environment, updating Jenkins application doesn't automatically update your plugins. You'd have to update your plugins in the settings options.
Also, my Jenkins instance is configured using tomcat & nginx reverse proxy.

Jenkins-Github Integration in different OS

I have a windows machine where I have installed jenkins(master). Then I installed jenkins slave in cent os which is a SSH server. There is a github repository which I have checked out in that cent os machine. Now I wanted to configure a job from the master jenkins which is in window to perform git pull operation in the cent os. How can I do this? Please help me in this.
You can use "Restrict where this project can be run" from Configure job option in jenkins
you need to provide label name.

Google push-to-deploy jenkins image fails after reboot

I am using the most recent jenkins setup from https://cloud.google.com/tools/repo/push-to-deploy in order to CI my development environment codebase. I noticed that the jenkins git plugin in the image provided is out of date and seems to have a bug with regex branch matching. I updated the plugin to the latest version but after that it seems that jenkins will not restart.
Rebooting the server got jenkins back up, but the google startup script doesn't relaunch and reconnect the docker slave images properly.
Has anyone had this experience and resolved it?

Resources