Jenkins and cas are together. Although this is not necessary in the CI system, the unification of accounts makes it a lot easier for engineers to develop, without having to worry about so many passwords. For jenkins to support cas, the following steps are required: 1. Install the cas plugin, 2. Configure the global security configuration, set the CAS Server URL (the url address of your cas) and CAS Protocol (cas3.0), 3. Save, and rollout test
system structure
address | Serve |
---|---|
http://yellowcong.com:8080 | jenkins |
http://yellowcong.com:9000 | case |
Configure cas single sign-on
1. Find system management
2. Search cas plugin
3. Install the cas plugin
4. Click [Global Security Configuration] to set the cas login system
5. Set the single sign-on address and protocol information
6. Test access
We visit http://yellowcong.com:8080 to access jenkins, and then jump to http://yellowcong.com:9000 of cas. After cas login, jump to jenkins. In this place, the user who logs in for the first time is admn, and then we need to manage the users of cas through Role-based Authorization Strategy
this plugin.