28 lines
658 B
Groovy
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'
|
|
}
|
|
}
|
|
}
|
|
} |