ium_452627/Jenkinsfile

28 lines
658 B
Plaintext
Raw Normal View History

2023-03-28 12:20:45 +02:00
pipeline {
agent any
//Definijuemy parametry, ktore bedzie mozna podac podczas wywolywania zadania
parameters {
string (
2023-03-28 13:18:23 +02:00
name: 'CUTOFF',
defaultValue: '300',
description: 'How many examples do You want to cut?',
2023-03-28 12:20:45 +02:00
trim: false
)
}
stages {
2023-03-28 12:44:56 +02:00
stage('Run Script') {
2023-03-28 12:55:12 +02:00
steps {
2023-03-28 13:08:50 +02:00
script {
2023-03-28 12:55:12 +02:00
sh "chmod +x -R ${env.WORKSPACE}"
2023-03-28 13:14:18 +02:00
sh './take_data.sh | tee output.txt'
2023-03-28 13:08:50 +02:00
}
2023-03-28 12:43:16 +02:00
}
2023-03-28 12:44:56 +02:00
2023-03-28 12:43:16 +02:00
}
2023-03-28 13:18:23 +02:00
stage('Archive Output') {
2023-03-28 12:20:45 +02:00
steps {
archiveArtifacts 'output.txt'
}
}
}
}