Fetching Secrets

Once you configure the plugin, you can build your Jenkins pipeline project to fetch secrets from the Delinea Secret Server.

To build a freestyle project:

  1. In Jenkins, go to the Dashboard tab and select New Item>Freestyle Project.

  2. In the Build Steps section, define the script that references the secrets as environment variables or credentials.

  3. Make sure your script is properly configured to reference the secrets from the Delinea Secret Server.

  4. Select Save to save the project.

  5. Select Build Now to run the project.

When you run the build, Jenkins will automatically fetch the required secrets from the Delinea Secret Server and use them during the pipeline's execution.

You can now choose to change the type of credential to Secret Server User Credentials. For more information, see Configuring the Secret Server Application Account in Jenkins.

After adding your credentials to the build environment, you can use the secret in your build.

This plugin will add a TSS_ prefix to the environment variables by default. To consume your credentials, you should leave the Environment Variable Prefix field blank in the Jenkins UI if you are using a pipeline job.

Verifying Fetched Secrets

To verify the fetched secrets:

  1. Check the pipeline job’s console output.

  2. If the secret fetching is successful, a confirmation message will be displayed.