Jenkins cloud application

You must be signed in as a super administrator for this task.

With Security Assertion Markup Language (SAML), your users can sign in to enterprise cloud applications with their Google Cloud credentials.

Set up SSO via SAML for Jenkins

Step 1: Set up Google as a SAML identity provider (IdP)
  1. Sign in to your Google Admin console.

    Sign in using your administrator account (does not end in @gmail.com).

  2. From the Admin console Home page, go to Apps and then SAML apps.

    To see Apps on the Home page, you might have to click More controls at the bottom. 

  3. Click the plus (+) icon at bottom right. 
  4. Locate and click Jenkins in the application list.
  5. On the Google IDP Information page, download the metadata and copy its content.
  6. Click Next.

    The Basic information window shows the Application name and Description seen by users.

  7. Click Next.
  8. On the Service Provider Details page, keep the default values. 
  9. Click Finish.
Step 2: Set up Jenkins as a SAML 2.0 service provider (SP)
  1. Open a new incognito browser window.
  2. Sign in to https://wiki.jenkins.io/login.action with your organization's Jenkins administrator account.
  3. Click on your account name. 

  4. Click Manage Jenkins and then Configure Global Security.

  5. Check the Enable Security box.

  6. Under the Security Realm section, select SAML 2.0.

  7. In the IdP Metadata field, paste the content of the metadata you downloaded in Step 1.

  8. At Authorization, select the appropriate option.

  9. Click Save.
Step 3: Enable the Jenkins app
  1. Sign in to your Google Admin console.

    Sign in using your administrator account (does not end in @gmail.com).

  2. From the Admin console Home page, go to Apps and then SAML apps.

    To see Apps on the Home page, you might have to click More controls at the bottom. 

  3. Select Jenkins.
  4. At the top right of the gray box, click Edit Service Compose.

  5. To turn on or off a service for everyone in your organization, click On for everyone or Off for everyone, and then click Save.

  6. To turn on or off a service only for users in an organizational unit:

    1. At the left, select the organizational unit.
    2. Select On or Off.
    3. To keep the service turned on or off even when the service is turned on or off for the parent organizational unit, click Override.
    4. If the organization's status is already Overridden, choose an option:
      • Inherit—Reverts to the same setting as its parent.
      • Save—Saves your new setting (even if the parent setting changes).

    Learn more about organizational structure.

  7. Ensure that your Jenkins user account email IDs match those in your Google domain.
Step 4: Verify that the SSO is working
  1. Sign in to your Google Admin console.

    Sign in using your administrator account (does not end in @gmail.com).

  2. From the Admin console Home page, go to Apps and then SAML apps.

    To see Apps on the Home page, you might have to click More controls at the bottom. 

  3. Select Jenkins. You should be redirected to the Google sign-in page.
  4. Enter your username and password.

After your credentials are authenticated, you are redirected back to Jenkins.

Was this helpful?
How can we improve it?