Zaktualizuj 'Jenkinsfile_train'
This commit is contained in:
parent
8d94e3d16e
commit
06220fadd8
@ -4,24 +4,56 @@ pipeline {
|
|||||||
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t kgirejko"
|
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t kgirejko"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
|
string(
|
||||||
|
defaultValue: 'kgirejko',
|
||||||
|
description: 'Kaggle username',
|
||||||
|
name: 'KAGGLE_USERNAME',
|
||||||
|
trim: false
|
||||||
|
)
|
||||||
|
|
||||||
|
password(
|
||||||
|
defaultValue: '51854c15661583860a60db232a7026f0',
|
||||||
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||||
|
name: 'KAGGLE_KEY'
|
||||||
|
)
|
||||||
|
|
||||||
|
string(
|
||||||
|
defaultValue: '',
|
||||||
|
description: '',
|
||||||
|
name: 'CUTOFF'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
environment {
|
||||||
|
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
|
||||||
|
KAGGLE_KEY="$params.KAGGLE_KEY"
|
||||||
|
CUTOFF="$params.CUTOFF"
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Script'){
|
stage('First') {
|
||||||
steps {
|
steps {
|
||||||
copyArtifacts filter: '*', projectName: 's478815-create-dataset'
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||||
|
sh "chmod +x -R ${env.WORKSPACE}"
|
||||||
|
sh './skrypt.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
stage('Second') {
|
||||||
success {
|
steps {
|
||||||
emailext body: 'SUCCESS', subject: 's478815-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s478815/ium_478815.git']]])
|
||||||
}
|
}
|
||||||
failure {
|
}
|
||||||
emailext body: 'FAILURE', subject: 's4478815-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
stage('Archive') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts 'data.csv'
|
||||||
|
archiveArtifacts 'data.csv.train'
|
||||||
|
archiveArtifacts 'data.csv.test'
|
||||||
|
archiveArtifacts 'data.csv.dev'
|
||||||
|
archiveArtifacts 'data.csv.shuf.uptd'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user