2023-03-28 12:20:45 +02:00
|
|
|
pipeline {
|
2023-04-04 18:50:50 +02:00
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
2023-03-28 12:20:45 +02:00
|
|
|
//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-04-04 18:50:50 +02:00
|
|
|
//sh "chmod +x -R ${env.WORKSPACE}"
|
|
|
|
//sh './take_data.sh | tee output.txt'
|
|
|
|
sh 'node --version | 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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|