ium_444354/Jenkinsfile

53 lines
1.7 KiB
Plaintext
Raw Normal View History

2022-03-21 11:13:00 +01:00
pipeline {
2022-03-24 19:56:27 +01:00
parameters{
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
2022-03-24 20:30:56 +01:00
name: 'KAGGLE_SECRET_KEY'
2022-03-24 19:56:27 +01:00
)
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"
2022-03-24 20:14:38 +01:00
KAGGLE_KEY="$params.KAGGLE_KEY"
2022-03-24 19:56:27 +01:00
CUTOFF="$params.CUTOFF"
}
2022-05-06 17:08:30 +02:00
agent {
docker { image 'ksero/ium:pytorch' }
}
options {
copyArtifactPermission('s444354-training');
}
2022-03-24 19:56:27 +01:00
stages {
stage("Check out from version control") {
steps {
2022-05-03 22:12:13 +02:00
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444354', url: 'https://git.wmi.amu.edu.pl/s444354/ium_444354.git']]])
}
}
2022-03-24 19:56:27 +01:00
stage("Shell Script") {
steps {
2022-04-09 20:52:48 +02:00
sh "chmod u+x ./script.sh"
2022-03-24 19:56:27 +01:00
sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./script.sh"
2022-05-06 17:08:30 +02:00
//archiveArtifacts 'TEST_winequality-red.csv'
//archiveArtifacts 'TRAIN_winequality-red.csv'
//archiveArtifacts 'VAL_winequality-red.csv'
2022-04-17 19:42:22 +02:00
archiveArtifacts 'pytorch/result.txt'
2022-03-24 19:56:27 +01:00
}
}
2022-05-06 17:08:30 +02:00
stage ('Starting train job') {
steps {
build job: 's444354-training/master', wait: false
}
2022-03-24 19:56:27 +01:00
}
2022-05-07 00:46:20 +02:00
}
2022-03-21 11:13:00 +01:00
}