changed jenkinsfile
This commit is contained in:
parent
c3af4605a6
commit
56fde0a95b
40
dvc/Jenkinsfile
vendored
40
dvc/Jenkinsfile
vendored
@ -10,10 +10,42 @@ pipeline {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('checkout') {
|
stage('One') {
|
||||||
steps {
|
properties([
|
||||||
git 'https://git.wmi.amu.edu.pl/s440058/ium_440058.git'
|
parameters([
|
||||||
copyArtifacts fingerprintArtifacts: true, projectName: 's440058-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
string(defaultValue: '',
|
||||||
|
description: 'Kaggle username',
|
||||||
|
name: 'KAGGLE_USERNAME',
|
||||||
|
trim: false),
|
||||||
|
password(defaultValue: '',
|
||||||
|
description: 'Kaggle token',
|
||||||
|
name: 'KAGGLE_KEY'),
|
||||||
|
string(defaultValue: '1000',
|
||||||
|
description: 'Data cutoff',
|
||||||
|
name: 'CUTOFF',
|
||||||
|
trim: false)
|
||||||
|
])
|
||||||
|
]
|
||||||
|
)
|
||||||
|
stage('Two') {
|
||||||
|
|
||||||
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
|
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
|
||||||
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s440058/ium_440058']]])
|
||||||
|
|
||||||
|
checkout scm
|
||||||
|
|
||||||
|
def image = docker.build("s440058/ium")
|
||||||
|
image.inside {
|
||||||
|
sh 'python3 ./pytorch-example.py > model.txt'
|
||||||
|
sh "chmod 777 ./bash.sh"
|
||||||
|
sh "./bash.sh"
|
||||||
|
|
||||||
|
archiveArtifacts "courses.data.dev"
|
||||||
|
archiveArtifacts "courses.data.test"
|
||||||
|
archiveArtifacts "courses.data.train"
|
||||||
|
archiveArtifacts 'model.txt'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('DVC') {
|
stage('DVC') {
|
||||||
|
Loading…
Reference in New Issue
Block a user