ium_444354/Jenkinsfile
Adrian Charkiewicz 0b27d931f3
Some checks failed
s444354-training/pipeline/head This commit looks good
s444354-evaluation/pipeline/head There was a failure building this commit
dont copy artifact result but create it itself
2022-05-09 10:56:28 +02:00

53 lines
1.7 KiB
Groovy

pipeline {
parameters{
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_SECRET_KEY'
)
string(
defaultValue: 'riraasaa',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME'
)
string(
defaultValue: '20',
description: 'Value for head command',
name: 'CUTOFF'
)
}
environment {
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
KAGGLE_KEY="$params.KAGGLE_KEY"
CUTOFF="$params.CUTOFF"
}
agent {
docker { image 'ksero/ium:pytorch' }
}
options {
copyArtifactPermission('s444354-training');
}
stages {
stage("Check out from version control") {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444354', url: 'https://git.wmi.amu.edu.pl/s444354/ium_444354.git']]])
}
}
stage("Shell Script") {
steps {
sh "chmod u+x ./script.sh"
sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./script.sh"
//archiveArtifacts 'TEST_winequality-red.csv'
//archiveArtifacts 'TRAIN_winequality-red.csv'
//archiveArtifacts 'VAL_winequality-red.csv'
//archiveArtifacts 'pytorch/result.txt'
}
}
stage ('Starting train job') {
steps {
build job: 's444354-training/master', wait: false
}
}
}
}