It is much easier to configure the SAML plugin for Jenkins using the Configuration-as-Code Jenkins plugin. Configuration would be something like this:
|
These instructions have been validated against Jenkins version 2.289.3 and SAML Plugin version 2.0.7. Be aware that our experience indicates a change in behavior between SAML Plugin version 1.x and 2.x. The Jenkins SAML integration broke when updating the SAML Plugin from version 1.x to 2.x if configuration isn't updated. |
Do this by creating and running a Jenkins job with the following for Bash script:
$JAVA_HOME/bin/keytool -noprompt -genkeypair -alias saml-key \ -keypass changeit \ -storepass changeit \ -keystore /var/jenkins_home/saml-key.jks \ -keyalg RSA -keysize 2048 -validity 3650 \ -dname "CN=jenkins.example.cucloud.net" |