ium_478815/Jenkinsfile

46 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-03-27 14:35:19 +02:00
pipeline {
agent any
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: '',
description: 'Value for head command',
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'
sh 'kaggle datasets list'
}
2022-03-27 20:56:24 +02:00
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi. amu.edu.pl/s478815/ium_478815.git']]])
sh "chmod a+x ./skrypt.sh"
2022-03-27 21:25:13 +02:00
archiveArtifacts 'data.csv'
2022-03-27 20:56:24 +02:00
2022-03-27 14:35:19 +02:00
}
}
}
}