Not able to downgrade the deploy to container - jenkins

I have an issue with deploy to container plugins v 1.15 so I have decided to remove the current version and downloaded the V1.13 manually and copied the .hpi to /var/lib/Jenkins folder and restarted the Jenkins many times and specific dependencies with specific versions installed manually all the versions look ok but deploy to container plugin not installing that I don't see any deploy folder and deploy.jpi file.
Please suggest me is there anything I missing?

Related

Jenkins install plugins offline

Installed Jenkins on a Linux server and want to install some plugins manually.
I want to install Blue Ocean and Artifactory.
For both plugins I downloaded the hpi file and tried to install it, but I get a lot of dependency errors.
Do I now have to install those dependencies manually as well? or is there a better way to do this?
I tried to install one of those dependency and that one also had some dependency errors as well :-(
The Linux server is not able to access the internet.
Thanks!
Robert
You are correct that BlueOcean has a lot of dependencies.
Given you are not able to connect to the internet you will need to download all 21 BlueOcean related hpi files and upload them from the Manage Jenkins > Manage Plugins > Advanced tab.
Alternatively, if you have access to the server that your Jenkins instance is running on you can copy the hpi files into the %JENKINS_HOME%/plugins folder. The corresponding directories (exploded from the hpi, which is just a zip file) will be created on Jenkins restart.
The easiest way to acquire all 21 plugin files is to open The Jenkins plugin page and search for blueocean. Download the same numbered version of all 21 and upload them one by one. Order shouldn't be an issue. As long as they are all present on restart the dependencies will resolve.
Same process goes for any other plugin. If you're able to get the machine connected to the internet it will make the process a lot simpler as you will be able to use the update center, which manages dependencies and update notifications.
Same case here. Our Jenkins is setup in OpenShift which is not allowed to connect to the Internet. Downloading a plugin 1-by-1 is tiresome. Not to mention that each plugins have its own dependencies that needs to be downloaded as well.
Here's what you would do...
Run a Jenkins locally in a machine that can download plugins.
Download and update all the plugins you want using the Update Center.
Go %JENKINS_HOME%/plugins directory. Inside this folder you would see *.jpi. These are your plugins. Its dependencies will be downloaded as well.
Rename it to *.hpi then keep it in some directory.
To test...
In your local Jenkins delete everything in %JENKINS_HOME%/plugins directory then put all *.hpi in this directory.
Restart your local Jenkins.
Verify if the plugins you require are installed and updated.

How to install jenkins plugins in offline mode

I am sitting behind proxy. I can not bypass it as I am not allowed to download anything on this linux box. I don't have root privilege either.
I have deployed jenkins.war on apache tomcat. Also, downloaded all necessary Jenkins plugins and placed it as shown below:
jenkins
+apache-tomcat-8.5.12/webapps/jenkins
+apache-tomcat-8.5.12/webapps/jenkins.war
+plugins
Can anyone please let me know is there any way I can simply point to 'jenkins/plugins' directory path in some config file to install plugins.
Thanks
On the master
Assuming a .hpi file has been explicitly downloaded, the administrator can manually place the .hpi file in a specific location on the file system.
Copy the downloaded .hpi` file into the JENKINS_HOME/plugins directory on the Jenkins master (for example, on Debian systems JENKINS_HOME is generally /var/lib/jenkins).
The master will need to be restarted before the plugin is loaded and made available in the Jenkins environment.
pay attention for the dependencies plugins some plugins claim other plugins
Jenkins plugins
Finally resolved this issue. Copied all plugins # /home/appuser/.jenkins/plugins. When we deploy jenkins.war on apache tomcat it creates jenkins-home # /home/user/.jenkins

How to install jenkins offline?

I could successfully install the jenkins online over my laptop. But while trying to install the jenkins offline (on my office workstation which cannot be connected to internet) the hell breaks loose.
After running the jenkins.war over command line although the jenkins was successfully installed yet some of the plugins were missing.I managed to get some help from the post How to install a plugin in Jenkins manually?
But then each of the plugins have to be individually downloaded and then copied over to my offline machine. So I had a trick.
I copied all the folders under .jenkins directory (in my online installation machine) and then copied them to my offline machine. Whoa!
It worked!
But I still get one single error:
Maven Integration Plugin V2.16 .javadoc 1.0 is missing. To fix, install v1.0 or later
So is there a way/website/pdf/repository which is a one stop solution/steps to smoothly install (read has all the required dependencies as a zip) Jenkins in offline mode. (If not, to the creators of Jenkins: Would it be a good idea to have one?)
I'm also searching for an easy way to manage the dependencies between the plugins but as far as I know there is no official tool for that.
Either you have a .zip file with all the plugins which you prepare one time or you fix the errors manually.
For your problem it should be enough to install the following .hpi file: https://updates.jenkins-ci.org/latest/javadoc.hpi (javadoc has no dependencies to other plugins)
You can download the .hpi version of plugins required and paste them in plugins folder at jenkins_home and then restart the jenkins,then you can able to use those plugins.

Upgrade to Jenkins 2.0 on Windows Server

We are currently running version 1.651.3 on our server and want to upgrade to version 2. From what I can tell online, I just need to run the .msi file and install into the current Jenkins directory and we're good. That didn't work, so I tried stopping the Jenkins service and installing again, but it is still running the old version. What am I missing?
So I didn't realize that you could just download the .war file instead of one of the deployment options. I was clicking Windows and getting the .msi instead of clicking 2.11 .war and getting the .war file. I then dropped this into the C:\Program Files (x86)\Jenkins directory on my server and all was good in the world.

Empty var/lib/jenkins directory installing Jenkins on CentOS 5.8

I have a problem with Jenkins installation. I've installed Jenkins many times on different machines and different platforms (Win XP, Win 7, Ubuntu 11.04, Ubuntu 12.04, CentOS 6) always with no problem until now.
Now I have to install Jenkins on a CentOS 5.8 machine, I follow the steps from http://pkg.jenkins-ci.org/redhat/
everything seems OK, but when I navigate to
/var/lib/jenkins
folder is empty (I run a ls -l command). It supose to have some default files and folders like
config.xml (file)
fingerprints (folder)
jobs (folder)
plugins (folder)
workspace (folder)
I've tried installing different jenkins versions, but the result is the same an empty jenkins folder
Does anybody know how to solve this issue?
Thanks in advance
I think I've found the answer.
I was trying to install latest version of jenkins, I have java 5, but latest jenkins version doesn't work with java 5.
I tried, then, install an older jenkins version, and everythig works perfect
sorry for the inconvenience
You said you followed this.
That page does not include:
sudo service jenkins start/stop/restart
but it does include a link to the wiki that explains that.
Could it be that you just didn't start it, if all you did was follow the instructions of the first link without reading the second?

Resources