Injecting Jenkins Credentials into a Build Job: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 26: Line 26:


Scope: Global. The [[Jenkins_Security_Concepts#Global|Global scope]] is required if the credential must be exposed to the build jobs.
Scope: Global. The [[Jenkins_Security_Concepts#Global|Global scope]] is required if the credential must be exposed to the build jobs.
Username:
Password:
ID: same as username.
OK.

Revision as of 20:06, 22 May 2018

External

Internal

Overview

This article describes the procedure to declare credentials, in this case an external repository username and password, in a Jenkins credential store and then expose them to a build job, in this case a Gradle-driven build.

Pre-Requisites

Procedure

Define the Credential

Credentials -> System -> Global credentials (unrestricted) -> Add Credential

Username with password

Scope: Global. The Global scope is required if the credential must be exposed to the build jobs.

Username:

Password:

ID: same as username.

OK.