Converting the pipeline configurations to JCasC
Let's identify the changes we made for the CI/CD pipeline configurations, and see how to apply the same changes using JCasC by looking up the relevant section of jenkins.yaml:
- Save the GitHub personal access token, SSH key for GitHub, and Docker login information as credentials in the Jenkins credentials store:
credentials:
system:
domainCredentials:
- credentials:
- string:
description: "github-calvinpark-pat"
id: "github-calvinpark-pat"
scope: GLOBAL
secret: "{AQAAABAAAAAwjW... El/Jqf2SbXuq3ZSk}"
- basicSSHUserPrivateKey:
description: "github-calvinpark-priv"
id: "github-calvinpark-priv"
privateKeySource:
directEntry:
privateKey: "{AQAAABAAAAowlZeZqs9Uk...}"
scope: GLOBAL
username: "calvinpark"
- usernamePassword...