I'm new to Jenkins and met a problem that I couldn't find the solution.
Currently I'm using "Role-Based Strategy" for authorization since I want different user to have different permission and here is my setting in "Manage Roles":
Setting in "Manage Roles"
I want the test_user with test_role only have the permission to run the job and it works well. However, in the "Build History of Jenkins", as a test_user I'm able to see all the build histories that started by other users:
View of "Building History of Jenkins"
Is there any way to limit the test_user only able to see its own build histories?
Related
I'm logged in as my user account (an admin) in Jenkins. I have project-based security on, with no access to "anonymous" user. Now when I run my Jenkins jobs manually, or via cron, the jobs run as "anonymous" user. How can I set my jobs to run as "jenkins" user by default?
Note I read Run jenkins job as another user, and the the default user is /etc/default/jenkins is jenkins, and that user owns the Jenkins files.
I mean why are my jobs "Running as anonymous" (seen on a job's console session) when I run them as my user, an admin user, or triggered by a timer?
I found it.
In Manage Jenkins -> Configure Global Security, toward the middle of page there's a section called Access Control For Builds. The Strategy was set to Run as anonymous, I set it to Run as SYSTEM.
I have setup a new Jenkins instance in docker.
Now am trying to create a new job. But the problem that am facing is my Source Code is in ADE.
But under "Source Code Management" i see only 2 options: 1) None 2) Git.
I dont see "ADE" option.
Is there any Plugin for ADE in jenkins?
Please do help
I worked at Oracle for some months and I used ade. Since ADE is a propietary SCM from Oracle, it is fully integrated in Oracle products. As far as I know, ADE can´t be integrated with jenkins natively but I think you could create a transaction in your jenkins server. When you need to build in jenkins, you would need to pull the transaction on your machine to the jenkins server. If you can set an observer or listener in jenkins when something changes in your transaction then trigger the build.
I am not sure if this can help you.
I have installed Jenkins in a docker container hosted on my Linux machine. Now the problem am facing is that I am unable to login to my Jenkins instance(UI) as my Unix\Linux user.
When i navigate to "Manage Jenkins >> Security >> Configure Global Security", under "Security Realm", I see an option called "Unix user/group database". If i select that option its asks(prompts) for "Service Name". I enter "sshd" and then click on "Test" button. On doing so it gives the below error: "User ‘jenkins’ needs to belong to group shadow to read /etc/shadow".
I am not sure how to fix it as am very new to docker as well as jenkins. Finally what i want to achieve is "i want to be able to login using my Unix\Linux credentials".
How can I enable job level permission on Jenkins? Means I have 10 Jenkins job in my Jenkins installation. I may need to enable user1 only access three jobs our of this 10 and user 2 will access only 5 jobs from this 10 etc?
Go to Manage Jenkins - Config global security - find a section "authorization" and choose "Project-based Matrix Authorization Strategy". Then add users and mark "OVerrall - Read" permission.
Then go to specific jobs and select "Use project-based security"
I'm trying to configure a local installation of Jenkins to review uploaded changes on Gerrit. So far, I've gotten Jenkins to detect uploaded changes and build them (using Gerrit Trigger). However, while the build concludes successfully on Jenkins, it doesn't post any reviews on Gerrit, even though it is configured to do so. Interestingly, in Gerrit change history, I can see Jenkins having started a build:
Jenkins Patch Set 1: Build Started http://localhost:8080/job/TestProject/70/
but that's it. No results are shown after this, like successful conclusion of the build etc. Since I can see the build started result, I'm assuming I've configured the review settings correctly, but something else is causing a hold up. I've checked in the Gerrit error_log file and it doesn't show any errors. What maybe the issue?
By the way I've been able to verify/review the code as jenkins using the command line.
To make code verification possible, you have to go through the following steps:
Allow label “Verified” on Gerrit server (also see here or here);
Read this and make sure your job configured properly, because you will not build latest changesets instead;
Give access to labels Code-Review and Verified in your Gerrit project for user Jenkins;
I was able to resolve this by adding the 'Verified Label' to the Gerrit Server. The version of Gerrit I used (2.11.3) explicitly asks you to install the Verified Label, and the default option is set at No and as a result I didn't install it. I simply reinstalled my Gerrit, this time choosing Yes on Install Verified Label. If you're facing this issue, simply reinstall your Gerrit. If re-installation is not an option, read this:
http://blog.bruin.sg/2013/04/how-to-edit-the-project-config-for-all-projects-in-gerrit/
Some basic information can be found also in Jenkins plugin
Create the profile through in Gerrit web interface for your Jenkins user, and set up a SSH key for that user.
Gerrit web interface > Admin > Groups > Non-Interactive Users > Add your jenkins user.
Admin > Projects > ... > Access > Edit
Reference: refs/*
Read: ALLOW for Non-Interactive Users
Reference: refs/heads/*
Label Code-Review: -1, +1 for Non-Interactive Users
Label Verified: -1, +1 for Non-Interactive Users
We are currently setting up Confluence, JIRA and Jenkins and I would rather have only one user database that all tools can use than having to create separate accounts in each tool. Google tells me that Jenkins can authenticate and authorize users against Atlassian Crowd. Confluence can use Crowd and also JIRA for user management.
But can Jenkins use JIRA (not Crowd) as its user database, to authenticate and authorize users against it?
One method is with the Crowd2 (Jenkins plugin).
From Jira
Goto Admin Cog > User Management
"JIRA User Server" (left side)
Click "+Add application" (top right side)
Notes: To specify a port with the IP address(es) in Jira, use XX.XX.XX.XX/PORT format. Jira user must have admin permissions.
From Jenkins
Goto "Manage Jenkins" (left side) > Manage Plugins > Available Tab
Download crowd2 plugin
Goto "Manage Jenkins" (left side) > "Configure Global Security"
Notes: Requires Jenkins admin access.