39 lines
1011 B
Groovy
39 lines
1011 B
Groovy
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
parameters {
|
|
string (
|
|
defaultValue: '40',
|
|
description: 'Podaj ilość wierszy do odcięcia ze zbioru danych',
|
|
name: 'CUTOFF',
|
|
trim: false
|
|
)
|
|
}
|
|
stages {
|
|
stage('Docker'){
|
|
steps{
|
|
sh 'python3 ./create.py'
|
|
sh 'python3 "./stroke-pytorch.py" > model.txt'
|
|
}
|
|
}
|
|
stage('checkout: Check out from version control') {
|
|
steps {
|
|
git 'https://git.wmi.amu.edu.pl/s434766/ium_434766.git'
|
|
}
|
|
}
|
|
stage('archiveArtifacts') {
|
|
steps {
|
|
archiveArtifacts 'model.txt'
|
|
archiveArtifacts 'data_val.csv'
|
|
archiveArtifacts 'data_test.csv'
|
|
archiveArtifacts 'data_train.csv'
|
|
archiveArtifacts 'healthcare-dataset-stroke-data.csv'
|
|
when{
|
|
branch 's434766-dataset-stats'
|
|
branch 's434766-training'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |