What you’ll learn

  • Jenkins agents.
  • Credentials and secrets.
  • Branches and pull requests.
  • How Jenkins can move from local Windows to AWS.

When you’re finished

  • Recognize the next architectural steps beyond the beginner lab.

5.1 Agents

As projects grow, avoid treating the controller as the permanent build machine.

Example:

Jenkins Controller
├── Windows Agent → .NET / Windows builds
└── Linux Agent   → web / Linux builds

Benefits include:

  • isolation,
  • different toolchains,
  • parallel execution,
  • easier scaling.

5.2 Credentials and secrets

Treat secrets as runtime inputs, not source code.

Typical Jenkins secret types include:

  • username/password,
  • secret text,
  • SSH keys,
  • certificate files.

Pipeline code should refer to a credential identifier, not contain the secret itself.

5.3 Branches and pull requests

After the single-branch labs work, extend the guide with:

  • feature branches,
  • pull-request validation,
  • multibranch pipelines,
  • branch-specific deployment rules.

A useful policy:

Feature branch → Build + Test
main           → Build + Test + Publish/Deploy

5.4 Moving Jenkins to AWS

Later architecture:

GitHub
  │
  ▼
Jenkins Controller on EC2
  │
  ├── Windows/Linux agents
  └── S3 / CloudFront

Moving the Jenkins controller should not require redesigning the application. The source repository and Jenkinsfile remain the core pipeline definition.

Before exposing Jenkins publicly, plan:

  • TLS,
  • authentication,
  • authorization,
  • patching,
  • backups,
  • security groups/firewalls,
  • reverse proxy,
  • secrets,
  • least-privilege IAM,
  • logging and monitoring.