Issue while copying plugin to jenkins/plugins directory.

筅森魡賤 提交于 2019-12-12 03:38:39

问题


I am working on Ubuntu. And need to copy perforce plugin file to jenkins/plugins directory. Since the directory is owned by jenkins user; I want to logon as jenkins user to do any work in this directory. How can I get jenkins user's passowrd? Am I going in the right direction? In general what is the preferred method of copying files to a directory in Ubuntu not owned by current user.

The perforce plugin does not appear on the plugin manager page; hence going the download+copy route.


回答1:


To logon as jeknins user, I couldn't simply use su jenkins as I didn't have jenkins user's password. So I used:

$ sudo su jenkins 

Also, after I looked again at the 'Manage plugins' page, I found perforce plugin. Somehow, I missed it on my first pass.



来源:https://stackoverflow.com/questions/14531689/issue-while-copying-plugin-to-jenkins-plugins-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!