Pipeline Project-Env

Build Status Jenkins Plugin Jenkins Plugin Installs

Introduction

This plugin allows you to use Project-Env within Jenkins pipelines. See Project-Env for more details.

Getting started

Declarative pipeline

pipeline {
    agent {
        // ...
    }
    options {
        withProjectEnv()
    }
    stages {
        // ...
    }
}

Scripted pipeline

node {
    withProjectEnv() {
        // ...
    }
}

Parameters

Name Description
cliVersion The Project-Env CLI version which should be used. If not configured, the latest version will be resolved automatically. If the Project-Env CLI is already installed (resolved through PATH), the plugin will use this version instead.
cliDebug Whether to activate the debug mode in the Project-Env CLI. If not configured, the debug mode will be deactivated.
configFile The path to the Project-Env CLI configuration file. If not configured, project-env.toml will be used.

Example

node {
    withProjectEnv(cliVersion: '3.4.0') {
        // ...
    }
}

Contributing

See contribution guidelines

Changelog

See releases