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) {
...
}
}
}
}
}
```
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
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.
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.
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