pipeline {
agent any
parameters {
choice(name: 'env', choices:['dev','qa','pre-prod','prod'] ,description: 'Choose environment to deploy')
choices(name: 'is_deploy',choices: ['yes','no'] description: 'Do you want to deploy')
}
stages {
stage('Deploying App') {
steps {
echo "${params}"
script {
def current_build_params = currentBuild.rawBuild.getAction(ParametersAction).getParameters()
build job: 'downstream-pipeline-for-deployment', parameters: current_build_params
}
}
}
}
}

--

--

--

DevOps | AWS Certified Solution Architect | Terraform | Kubernetes | Ansible | SALT | Python | Bash | PHP | MySQL | Helm cloudops-guru.in

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Charm Programming

Critical Supply Chain

Key Differences between Python and Java

Thank you for your participation!

So we started using IAM roles for service accounts in our Kubernetes cluster

How to schedule an SMS Marketing message with PHP and the Twilio Messaging API

Understanding the Problem of ERC20 Unlimited Approval from First Principles

Wrapping Your Head Around Rust Generics with GiftBox: An Empty GiftBox

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nikhil S

Nikhil S

DevOps | AWS Certified Solution Architect | Terraform | Kubernetes | Ansible | SALT | Python | Bash | PHP | MySQL | Helm cloudops-guru.in

More from Medium

Cloud Custodian: Easy way to explore instances in AWS cloud

Radaar AWS DevOps Transformation

Terrform : Chapter 2

Configuring Okta as IdP with Spring Security using SAML