Zaktualizuj 'Jenkinsfile'

This commit is contained in:
Michał Zaręba 2021-04-08 22:00:01 +02:00
parent 7d8301a62b
commit 0c2498a3cc

12
Jenkinsfile vendored
View File

@ -1,17 +1,11 @@
pipeline{ pipeline{
agent any agent {
dockerfile true
}
parameters { parameters {
string(defaultValue: '5', description: 'Amount of lines to cut off the file.', name: 'CUTOFF', trim: false) string(defaultValue: '5', description: 'Amount of lines to cut off the file.', name: 'CUTOFF', trim: false)
} }
stages{ stages{
stage('Docker') {
agent {
dockerfile true
}
steps {
sh 'python3 script2.py'
}
}
stage('Stage 1'){ stage('Stage 1'){
steps{ steps{
echo 'Hello World!' echo 'Hello World!'