Reputation: 43
I am working with Jenkins and I want to install the Publish Over SSH Plugin, but I didn't see the plugin not in the Available Tab, and not in the Installed Tab.
Is it possible to install this plugin in another way?
Upvotes: 0
Views: 1614
Reputation: 43
If I remember correctly, the plugin was installed after I logged out and login again. But I saw this only after logging out and logging in several times because each time I logged out and logged in, the plugin was still not installed.
Upvotes: 0
Reputation: 4767
The plugin was probably pulled from plugin repository due to an extensive list of unresolved Security Issues.
If prepared to accept the risk, you can download the latest release from the GitHub repo, then manually upload.
Update: for some reason, the plugin mainteners only github release the source tarballs and not the corresponding hpi/jpi. Found it in the archives. Go up a dir for earler versions, up two for over plugins.
Update 2: Shortly after this answer was posted, the vulnerabilities in the plugin were resolved and a new release made - 1.23 (Feb 11, 2022), thereby making the plugin available again for download. While the answer has now been "accepted" a year later, the guidance is applicable to any revoked plugin: got to GitHub and download the plugin from the GitHub release. Links to source are found on the the "links" section of the plugins site for each plugin .
Upvotes: 0
Reputation: 21
Manual installation :
0- donwload source code zip file from here under: https://github.com/jenkinsci/publish-over-ssh-plugin.git
1- install mvn on your local machine if not yet. 2- open terminal in the folder (source code folder which is downloaded from Github (step 0) 3- Run mvn compile, after that mvn package--> will generate target folder with necessary files.(.jar, .hpi) 4- inside the generated folder target you will find .hpi file 5- in Jenkins UI go to manage Jenkins -> Plugin management -> in the second section UI based upload, upload .hpi file from target folder and hit upload. after successful upload a window appears where you can restart jenkins - changes will take effect after restarting.
You will successfully find the plugin installed under "installed" tab. With security warning. which is obviously not to be used in a production environment. let me know if you have any issues.
Upvotes: 1