/
Jenkins Pipeline Parameters and Waiting for manual inputs

Jenkins Pipeline Parameters and Waiting for manual inputs

Parameters section

The parameters section enumerates the parameters to the pipeline with their default values. The four parameters used in the template, and their meanings are discussed in https://datamigrators.atlassian.net/wiki/spaces/MCIDOC/pages/741310474

note that parameters are immutable, and once set at pipeline (or scope section) start, cannot be changed

parameters { string(name: 'domainName', defaultValue: 'services_tier.datamigrators.io:59445', description: 'DataStage Service Tier') string(name: 'serverName', defaultValue: 'engine_tier.datamigrators.io', description: 'DataStage Engine Tier') string(name: 'projectName', defaultValue: 'wwi_jenkins_ds117', description: 'Logical (unsuffixed) Project Name') string(name: 'environmentId', defaultValue: 'ci', description: 'Environment Identifer') }

When run interactively, the user will be prompted for these at pipeline start time like so:

Similarly, users can be prompted to make a choice from a selection…

parameters { choice (name: 'targetEnvironment', choices: ['qa', 'perf', 'prod'], description: 'Deploy to environment') }

 

Related content

DataStage Deploy Command
DataStage Deploy Command
Read with this
Introducing Jenkins Pipelines
Introducing Jenkins Pipelines
More like this
Configuring Manual Approval Steps in Jenkins
Configuring Manual Approval Steps in Jenkins
More like this
Jenkins Environment Variables
Jenkins Environment Variables
More like this
Understanding your Azure DevOps CI/CD Pipeline
Understanding your Azure DevOps CI/CD Pipeline
More like this
Reusable Pipeline Templates in Jenkins
Reusable Pipeline Templates in Jenkins
More like this

© 2015-2024 Data Migrators Pty Ltd.