http://<jenkins_public_ip>:8080

image.png

  1. Plugins: Manage Jenkins → Plugins → install Pipeline, Git, GitHub, GitHub API, GitHub Branch Source (or suggested plugins). Restart.
  2. Credential 1 (PR comments): Manage Jenkins → Credentials → Add → Kind: Secret text → paste your GitHub PAT → ID: github-pat.

image.png

  1. Credential 2 (Git checkout): Add → Kind: Username with password → username = your GitHub username, password = same PAT → ID: github-pat-git-auth.

image.png

  1. Credential 3 (tfvars): Add → Kind: Secret file → upload your local terraform.tfvars → ID: tf-tfvars.

image.png

  1. Job: New Item → Multibranch Pipeline → Branch Sources → GitHub → your repo URL → select github-pat-git-auth → Save.

image.png

image.png