2022-03-27 14:35:19 +02:00
|
|
|
pipeline {
|
2022-04-03 21:10:18 +02:00
|
|
|
agent {
|
2022-05-06 18:54:45 +02:00
|
|
|
docker { image 'korneliag/ium478815:1.0' }
|
2022-05-06 18:38:41 +02:00
|
|
|
}
|
2022-05-06 18:27:04 +02:00
|
|
|
|
2022-03-27 20:56:24 +02:00
|
|
|
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: '',
|
2022-03-27 22:06:46 +02:00
|
|
|
description: '',
|
2022-03-27 20:56:24 +02:00
|
|
|
name: 'CUTOFF'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
environment {
|
|
|
|
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
|
|
|
|
KAGGLE_KEY="$params.KAGGLE_KEY"
|
|
|
|
CUTOFF="$params.CUTOFF"
|
|
|
|
}
|
|
|
|
|
2022-03-27 14:35:19 +02:00
|
|
|
stages {
|
2022-03-27 20:56:24 +02:00
|
|
|
stage('First') {
|
2022-03-27 14:35:19 +02:00
|
|
|
steps {
|
2022-03-27 21:29:40 +02:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
|
|
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
2022-03-27 21:42:11 +02:00
|
|
|
sh "chmod +x -R ${env.WORKSPACE}"
|
|
|
|
sh './skrypt.sh'
|
2022-03-27 21:33:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Second') {
|
|
|
|
steps {
|
2022-03-27 21:36:21 +02:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s478815/ium_478815.git']]])
|
2022-03-27 21:50:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive') {
|
|
|
|
steps {
|
2022-03-27 21:25:13 +02:00
|
|
|
archiveArtifacts 'data.csv'
|
2022-03-27 21:50:23 +02:00
|
|
|
archiveArtifacts 'data.csv.train'
|
|
|
|
archiveArtifacts 'data.csv.test'
|
|
|
|
archiveArtifacts 'data.csv.dev'
|
2022-03-27 22:21:30 +02:00
|
|
|
archiveArtifacts 'data.csv.shuf.uptd'
|
2022-05-06 19:59:49 +02:00
|
|
|
|
|
|
|
build job: 's478815-training/master/'
|
2022-03-27 14:35:19 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-05-06 18:52:37 +02:00
|
|
|
}
|