This commit is contained in:
parent
e6b7def4b4
commit
ad164f3064
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -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
31
training.Jenkinsfile
Normal 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'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user