将插件复制到jenkins/plugins目录时出现问题. [英] Issue while copying plugin to jenkins/plugins directory.

查看:589
本文介绍了将插件复制到jenkins/plugins目录时出现问题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ubuntu.并且需要将perforce插件文件复制到jenkins/plugins目录.由于该目录归jenkins用户所有;我想以jenkins用户身份登录,以在此目录中进行任何工作.如何获取jenkins用户的密码?我朝着正确的方向前进吗?通常,将文件复制到当前用户不拥有的Ubuntu目录中的首选方法是什么.

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.

perforce插件未出现在插件管理器页面上;因此要进行下载+复制路线.

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

推荐答案

要以jeknins用户身份登录,我不能简单地使用su jenkins,因为我没有jenkins用户的密码.所以我用了:

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 

此外,在再次查看管理插件"页面后,我发现了perforce插件.不知何故,我在第一次通过时就错过了.

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

这篇关于将插件复制到jenkins/plugins目录时出现问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆