Skip to content

Commit ab17604

Browse files
author
ranjeet-pivotchain
committed
added parameter
1 parent 390d3c5 commit ab17604

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Jenkinsfile

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
pipeline {
22
agent any
3+
parameters{
4+
choice(name: 'environment', choices: ['dev', 'uat', 'prod'], description: 'Select environment to deploy')
5+
}
36
environment{
47
NEW_VERSION = '1.3.3'
58
SERVER_CREDENTIALS = credentials('ranjeetrj')

jenkinfile/Jenkinsfile

+5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
pipeline {
22
agent any
3+
parameters{
4+
choice(name: 'environment', choices: ['dev', 'uat', 'prod'], description: 'Select environment to deploy')
5+
}
36
environment{
47
NEW_VERSION = '1.3.3'
8+
SERVER_CREDENTIALS = credentials('ranjeetrj')
59
}
610

711
stages {
@@ -27,6 +31,7 @@ pipeline {
2731
steps {
2832
echo 'Deploying....'
2933
echo "Deploying with version ${NEW_VERSION}"
34+
echo "Deploying with version ${SERVER_CREDENTIALS}"
3035
}
3136
}
3237
}

0 commit comments

Comments
 (0)