jenkins-docs / jenkins-docs/quickstart-tutorials

Add profile specific jobs

Open
#409 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

hacktoberfest
Dominant language
Shell
Stars
33
Forks
359
Avg merge
6h 35m
Merged PRs (30d)
61

Description

The current setup creates a running configuration of Jenkins with a specific agent, e.g. a maven agent. It would be also helpful, if the provided hello-world job would be profile dependent. I.e., when selecting the maven profile it should configure and build a maven project, and so on.

In my Jenkins student setup I am using such jobs for maven, see https://github.com/uhafner/codingstyle/tree/main/docker/images/jenkins-controller/preconfigured-jobs for more details.

Since I did not find an easy way to add profile specific jobs here, I created this issue rather than a PR. Once the general idea is possible, I can copy one of my projects of my codingstyle into this tutorial repository.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files or tests. Start by tracing how profiles select the Jenkins agent and how the current hello-world job is defined, then compare the example jobs in codingstyle's preconfigured-jobs directory. Done means each supported profile provisions and builds its corresponding example project.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, ci-cd, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.