Find Jobs
Hire Freelancers

Jenkins Declarative Pipeline that Satisfy ALL, one value and multi-value option to run multiple stages

$10-30 USD

Closed
Posted 9 months ago

$10-30 USD

Paid on delivery
Jenkins pipeline that can accept multiple release values and an ALL option let's consider pipeline has 4 stages stage1 then stage 2 then stage3 and then stage 4 each is dependent on previous only to complete ex: ALL, 1,2,3,4,5 When we choose ALL, all 4 stages should run in parallel for 1,2,3,4,5 when we choose anyone for ex: 3 then all 4 stages should run in parallel for 3 we also should be able to multiple release values, example: 3 and 5 in this all 4 stages should run in parallel for 3 and 5 I tried matrix, and it's working for ALL options but not for selective, so I had to write duplicate stages for individual ones like below. But it doesn't support choosing multiple VERSION values, and code is not re-used effectively. Need help with code refactor to run it for multiple options and in parallel ``` pipeline { agent none parameters { string( name: 'BRANCH', defaultValue: '', description: '...') choice( name: 'VERSION', choices: ["ALL", "1", "2", "3", "4", "5"], description: 'Select version(s) for cluster deploy') } stages { stage('New Cluster') { when { expression { [login to view URL] == "ALL" } } matrix { axes { axis { name 'BASE_VERSION' values "1", "2", "3", "4", "5" } } Stages { stage (1){ ... } stage (2) { ... } stage (n) { ... } } } } stage('Desired Version Cluster') { when { expression { [login to view URL] != "ALL" } } Stages { stage (1){ ... } stage (2) { ... } stage (n) { ... } } } } } ```
Project ID: 37101416

About the project

4 proposals
Remote project
Active 8 mos ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average $20 USD for this job
User Avatar
Hi, I have very vast experience and all the expertise required to complete your project, let me know if you require my services so we will discuss further the project details
$30 USD in 7 days
5.0 (3 reviews)
3.8
3.8
User Avatar
Hi There, I'm having 4+ years of experience in jenkins. I can able to complete this job efficiently. Please provide me a opportunity. Price is also negotiable.
$10 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I am a DevOps engineer with one year of experience and I am was a backend developer for 4 years. I have many technical skills such as php, python, java, sql, javascript, laravel, git, docker, kubernates, AWS, Terraform, jenkins, Maven and Agile Methodology. I have already worked in more than ten projects.
$20 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Iam able create jenkins declarative pipeline and deploy create jenkins pipeline based on java,python&nodejs i create env name for credentials & username for security purpose i will create dockerfile by instruction based on source code & light weight i will k8s for app to make high availability without downtime to users
$20 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Dublin, United States
0.0
0
Member since Aug 7, 2023

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.