ium_452627/Jenkinsfile
2023-03-28 13:18:23 +02:00

28 lines
658 B
Groovy

pipeline {
agent any
//Definijuemy parametry, ktore bedzie mozna podac podczas wywolywania zadania
parameters {
string (
name: 'CUTOFF',
defaultValue: '300',
description: 'How many examples do You want to cut?',
trim: false
)
}
stages {
stage('Run Script') {
steps {
script {
sh "chmod +x -R ${env.WORKSPACE}"
sh './take_data.sh | tee output.txt'
}
}
}
stage('Archive Output') {
steps {
archiveArtifacts 'output.txt'
}
}
}
}