2023-04-20 21:50:50 +02:00
|
|
|
pipeline {
|
2023-04-21 11:23:34 +02:00
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
2023-04-20 22:57:58 +02:00
|
|
|
|
|
|
|
parameters {
|
|
|
|
string (
|
|
|
|
defaultValue: '0',
|
|
|
|
description: 'Zdefiniowanie wielkości odcięcia zbioru danych',
|
|
|
|
name: 'CUTOFF',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2023-04-20 21:50:50 +02:00
|
|
|
stages {
|
2023-04-20 22:45:53 +02:00
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Script') {
|
2023-04-20 21:50:50 +02:00
|
|
|
steps {
|
2023-04-21 13:03:23 +02:00
|
|
|
sh 'python3 main.py'
|
2023-04-20 21:50:50 +02:00
|
|
|
}
|
|
|
|
}
|
2023-04-21 16:11:09 +02:00
|
|
|
stage('List') {
|
|
|
|
steps {
|
|
|
|
sh 'ls -la'
|
|
|
|
}
|
|
|
|
}
|
2023-04-20 23:19:33 +02:00
|
|
|
stage('ArchiveArtifacts') {
|
2023-04-20 21:50:50 +02:00
|
|
|
steps {
|
2023-04-21 16:17:50 +02:00
|
|
|
archiveArtifacts 'train.data'
|
|
|
|
archiveArtifacts 'test.data'
|
|
|
|
archiveArtifacts 'dev.data'
|
2023-04-20 21:50:50 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|