Issue while copying plugin to jenkins/plugins directory. - plugins

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.

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.

Related

Authentication failed - Cannot clone remote repository by Git (Only occurred in Eclipse)

I am on Eclipse 2018.12 (actually same issue occurs from other version like Mars2 or Scala-IDE 4.7), I am struggling to get Git/EGit pass authentication while cloning remote repository, which is deployed on my company's server.
The same issue never occur while I am using Git command like or Git GUI or IntelliJ, but only by Eclipse (regardless of Eclipse version or any type of Git plugin)
I think the difference here is from Git bash or Git GUI or IntelliJ, the authentication is implicitly by verifying my Windows credential from local OS credential store with remote server. So Git bash/GUI and IntelliJ never pop up the login screen.
However, the default setup page from Eclipse asks for username/password every time. And after I enter the correct information, the same pop up message just show up again and again, like a sign that the authentication never pass.
Please see screenshot below.
Is there anyway to let Eclipse to follow the same way of authentication like Git
Same issue here. Seems that eGit doesn't support Windows Authentication where as command line Git does.
Work around is to use a Personal Access Token as the password and anything as the username.
You can create a PAT by logging into your TFS/Azure DevOps Website, click on your profile icon at the top right, select Security. Then create a new Personal Access Token and copy the token into the password box in eclipse. Maximum life of a token is 1 year, so you'll need to make a new one every year.

LAMP - Jenkins - Git setup as deployment

I've got a LAMP stack, running a web application at /var/www/html/. Right now, I have the source code hosted on BitBucket, and whenever there is an update, I'm simply doing a git pull in the /var/www/html/ directory to update the code. Not really ideal, and want to change it.
I tried setting up Jenkins with Git plugin to do this automatically, but I'm running into permissions problems when doing it directly to the /var/www/html directory. I've got the directory as group writeable by the www-data group, and have added the user jenkins to that group, but to no avail.
What's the best way for me to have Jenkins run and deploy the code to that directory?
Do you also have the /var and /var/www directories as (at least) readable to that group? I had similar problems until I made permission changes (I used setfacl) to all these directories.

Publishing a Project on GitHub

I want to use this way to upload my project to GitHub (Source):
To publish you project sources on GitHub
On the main menu, choose VCS | Import into Version Control | Share
Project on GitHub .
If you have registered login and password,
PhpStorm establishes connection with GitHub using these credentials.
If you have not registered your GitHub credentials in PhpStorm, the
Login to GitGub dialog box. Specify your GitHub login and password or
create an account there.
Upon establishing connection, the Share
Project on GitHub dialog box opens. Specify the name of the repository
to store your project sources in. By default, PhpStorm suggests the
name of the current project. Provide a brief description of the
project functionality. Click the Share button. PhpStorm initiates
creation of the new repository on the GitHub and uploads the project
sources to it.
First step works, added my GitHub login data, test the connection and it works.
Now upon step 2, after clicking the Share Project on GitHub link this error shows up:
Error Running Git.
Cannot run program "git.exe": CreateProcess error=2, The system can not find the file specified
What do I need to do to make this work?
The OS is seemingly Windows but what version?
This might be what you need tough: I can't find my git.exe file in my Github folder

GitHub 'your credentials may be out of date' can't clone

I have tried logging out and in, changing password and non work.
I also downloaded the project as zip and put it in the folder. But I can't 'find' it on github client for windows and I cannot clone it then it tells me the project already exist. But I can't open the repository on github for windows. I have deleted Github for windows and re-installed it. I've removed the SSH on github.com so it would make new keys. None work. Any suggestions?
I am getting this error:
http://snag.gy/eHlqj.jpg
So no specific reason at all but;
It was almost 5 months that I was part of this private project. 5 of us are committing almost every day for the past 5 months. Only I had this problem so far.
What helped:
Uninstall github
use something like ccleaner to clean your pc and registry
remove %AppData%\GitHub manually
remove %LocalAppData%\GitHub manually
restart
go to www.github.com in your account and remove the SSH key's.
install github client and login
done, it should work now
It seems that this is a problem of web credentials, have you tried with another browser? or to clear the cache of Chrome?

Can I chgrp a directory through Subclipse?

I develop on one machine in Eclipse. When I commit the files to the server, the owner is set to 'svn' and the group is set to 'daemon' (neither of which are me). I'm trying out a framework. It requires one of its directories to be writable by Apache. Apache is group 'nobody'. I'd like to chgrp nobody /path/to/directory but I can't do it directly since svn owns the files.
Is there a way in Eclipse (Subclipse module) that I can send a chgrp command?
Im confused by your question.. When you commit files they should be going to the repository. As long as the files within the repository are writable bay all the svn user accounts that part of it is fine.
Now if you are going to deploy these to a server for test/production/whtever you want to do a svn checkout or export. Typically you login is as whatever FTP user you might login with an ftp client (so that you know apache can read files by this user:group) and you then issue the export or checkout command and it performs that operation as the user that issued the command.
In short you should never have a situation where anything in your checkout/export is owned by anyone other than the user you checked out/exported with. So you should be able to ssh in (or perhaps us ftp/sftp) to change the permission/user/group of the files youve deployed. But this has nothing to do with Eclipse, or even SVN.