Jenkins Simple Pipeline Configuration

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

General

Description

"Artifact pipeline that runs tests, packages and publishes ..."

Discard old builds

Yes

This determines when, if ever, build records for this project should be discarded. Build records include the console output, archived artifacts, and any other metadata related to a particular build. Keeping fewer builds means less disk space will be used in the Build Record Root Directory, which is specified on the Configure System screen.

Strategy: Log Rotation

Max # of builds to keep: 10

Advanced:

Do not allow concurrent builds

Leave unchecked.

Do not allow the pipeline to resume if the master restarts

Leave unchecked.

GitHub project

Leave unchecked.

Delivery Pipeline configuration

Leave unchecked.

Pipeline speed/durability override

Leave unchecked.

Preserve stashes from completed builds

Leave unchecked.

Rebuild options

Leave unchecked.

This project is parameterized

String Parameter Name: branch

Default Value: develop

Description: The branch to build on

Throttle Concurrent Builds

Check

Throttle this project alone/Throttle this project as part of one or more categories

Select "Throttle this project alone"

Maximum Total Concurrent Builds

5

The maximum number of concurrent builds of this project (or category) to be allowed to run at any one time, across all nodes.

Maximum Concurrent Builds Per Node

Prevent multiple jobs with identical parameters from running concurrently

Leave unchecked.

Throttle builds

Leave unchecked.

Prepare an environment for the run

Leave unchecked.

Build Triggers

Build after other projects are built

Leave unchecked.

Build periodically

Leave unchecked.

Build when another project is promoted

Leave unchecked.

GitHub Pull Request Builder

Leave unchecked.

GitHub hook trigger for GITScm polling

Leave unchecked.

Poll SCM

Leave unchecked.

Disable this project

Leave unchecked.

Quiet period

Leave unchecked.

Trigger builds remotely (e.g., from scripts)

Leave unchecked.

Advanced Project Options

Display Name

Pipeline

Definition

Pipeline script from SCM

SCM

Git

Repositories

Repository URL:

https://github.com/novaordis/test.git

Credentials:

Branches to build

Branch Specifier

$branch

Repository browser

(Auto)

Additional Behaviors

Prune stale remote-tracking branches

Advanced clone behaviors

Fetch tags: Disabled

Honor refspec on initial clone: Enabled

Shallow clone: Enabled

Shallow clone depth: 20

Path of the reference repo to use during clone:

Timeout (in minutes) for clone and fetch operations: 20

Script Path

infra/something.Jenkinsfile

Lightweight checkout

Disabled