.
Some checks failed
s444501-training/pipeline/head There was a failure building this commit

This commit is contained in:
s444501 2022-05-01 14:20:21 +02:00
parent e6b7def4b4
commit ad164f3064
2 changed files with 36 additions and 4 deletions

9
Jenkinsfile vendored
View File

@ -3,7 +3,6 @@ pipeline {
dockerfile {additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} -t zadanie"}
}
parameters {
string(
defaultValue: 'shuhrer',
description: 'Kaggle username',
@ -25,13 +24,11 @@ pipeline {
stages {
stage('Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444501', url: 'https://git.wmi.amu.edu.pl/s444501/ium_444501.git']]])
}
}
stage('Shell Script') {
steps {
sh 'chmod u+x download.sh'
@ -42,7 +39,11 @@ pipeline {
}
archiveArtifacts artifacts: 'd_test.csv, d_dev.csv, d_train.csv'
}
}
stage ('Model - training') {
steps {
build job: 's444501-training/master', wait: false
}
}
}
}

31
training.Jenkinsfile Normal file
View File

@ -0,0 +1,31 @@
pipeline {
agent {
docker {image 'zadanie'}
}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444501-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Train model') {
steps {
sh 'python ium-data.py'
}
}
stage('Archive model') {
steps {
archiveArtifacts artifacts: 'model.pkl'
}
}
}
}