ium_434766/Jenkinsfile

35 lines
892 B
Plaintext
Raw Normal View History

2021-03-26 16:36:45 +01:00
pipeline {
2021-04-10 13:22:11 +02:00
agent {
dockerfile true
}
2021-03-26 16:36:45 +01:00
parameters {
string (
defaultValue: '40',
description: 'Podaj ilość wierszy do odcięcia ze zbioru danych',
name: 'CUTOFF',
trim: false
)
}
stages {
2021-04-10 13:22:11 +02:00
stage('Docker'){
steps{
sh 'python3 ./create.py'
2021-04-17 13:35:20 +02:00
sh 'python3 "./stroke-pytorch.py" > model.txt'
2021-03-26 16:36:45 +01:00
}
}
2021-04-10 13:22:11 +02:00
stage('checkout: Check out from version control') {
2021-03-26 16:36:45 +01:00
steps {
2021-04-10 13:22:11 +02:00
git 'https://git.wmi.amu.edu.pl/s434766/ium_434766.git'
2021-03-26 16:36:45 +01:00
}
}
stage('archiveArtifacts') {
steps {
2021-04-17 13:35:20 +02:00
archiveArtifacts 'model.txt'
2021-04-10 13:22:11 +02:00
archiveArtifacts 'data_val.csv'
archiveArtifacts 'data_test.csv'
archiveArtifacts 'data_train.csv'
archiveArtifacts 'healthcare-dataset-stroke-data.csv'
2021-03-26 16:36:45 +01:00
}
}
}
}