11.2.4.3.2 Use Credentials with a Build Job

A git based build job will often require credentials. To use the credentials created by the --credentials parameter, add the --git-job-credentials-id parameter. --gjci for short.

cicdw jenkins-server create --credentials cred_id::user::pwd --git-job-credentials-id cred_id

Note that username/password authentication will not work for any ssh based remote url.

  • ssh://git@some-git-server.com/projects/project.git
  • ssh://user@some-git-server.com/~/projects/project.git
  • git://some-git-server.com/projects/project.git
  • git@some-git-server.com:projects/project.git