40 lines
1.0 KiB
Groovy
40 lines
1.0 KiB
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'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
build job: 's434766-training/master', parameters: [string(name: 'BATCH_SIZE', value:'16'), string(name: 'EPOCHS', value:'5') ]
|
|
}
|
|
}
|
|
} |