Skip to content

Commit

Permalink
Update jenkin
Browse files Browse the repository at this point in the history
  • Loading branch information
tdevout authored Feb 28, 2023
1 parent c65e278 commit 1119b59
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions jenkin
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ else:
print(f'Unknown fruit: {fruit}')


pipeline {
agent any
parameters {
choice(name: 'FRUIT', choices: ['apple', 'banana', 'orange'], description: 'Choose a fruit')
}
stages {
stage('Run Python Script') {
steps {
sh "python myscript.py ${params.FRUIT}"
}
}
}
}




Expand Down

0 comments on commit 1119b59

Please sign in to comment.