Jenkins tutorial
Install ubuntu 20.04
view jenkins password
view jenkins user
set jenkins user password
set no-password for jenkins user
Use for jenkins own database
Use for LDAP users login
Login for system users
see the error
how to solve this error
open this file
add jenkins user to shadow group
restart jenkins
sucess
now see ubuntu user login jenkins
install this plugins
role based strategy
Go to Manage and assgin roles
To create follwoing users and group
Enable Permission the to the Group
To add Immedia_Users role
Immedia_Users role has been added
Immedia_Users role; Allow job only read
Now create four free-style jobs
Goto assign roles
Add user & Assgin roles
Item role add below users
Apply and save
Now going to login console using venket login; venkat is a readonly user so view all the jobs
No other options not avilable build,configure,delete
Login as a karthik ; same as venkat user permission; No other options not avilable build,configure,delete
Now change permission build_users give job read permission
Now see vimal as a build user; Now job read also available
Now login ravi as a read only for the job
Now change role for Immedia_Users; job move,delete,configure,cancel,build
Now see all the option available for ravi user
Create a Freestyle project
In configuration page
Add jenkins
Give username and password
select added username
select branch
Enable delete workspace before build starts
Build steps below
Save
Build now
Console Output
Install docker-build-step plugin
Create a new job
SCM choose Git;
branch name mainmaster
build step