add jenkinsfile_clean
This commit is contained in:
parent
faff4dc8f1
commit
bdf9c7b85a
91
Jenkinsfile_clean
Normal file
91
Jenkinsfile_clean
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
|
||||||
|
Zgłoszenia
|
||||||
|
Oczekujące zmiany
|
||||||
|
Kamienie milowe
|
||||||
|
Odkrywaj
|
||||||
|
Powiadomienia
|
||||||
|
Utwórz…
|
||||||
|
Maciej Czajka Profil i ustawienia…
|
||||||
|
s444356
|
||||||
|
/
|
||||||
|
ium_444356
|
||||||
|
Przestań obserwować
|
||||||
|
1
|
||||||
|
Polub
|
||||||
|
0
|
||||||
|
Forkuj
|
||||||
|
0
|
||||||
|
Kod
|
||||||
|
Zgłoszenia
|
||||||
|
Oczekujące zmiany
|
||||||
|
Projekty
|
||||||
|
Wydania
|
||||||
|
Wiki
|
||||||
|
Aktywność
|
||||||
|
Ustawienia
|
||||||
|
Brak opisu
|
||||||
|
Zarządzaj tematami
|
||||||
|
130 Commity
|
||||||
|
1 Gałąź
|
||||||
|
0 Tagi
|
||||||
|
5.4 MiB
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Gałąź: master
|
||||||
|
ium_444356/Jenkinsfile
|
||||||
|
47 wiersze
|
||||||
|
1.4 KiB
|
||||||
|
Czysty
|
||||||
|
Bezpośredni odnośnik
|
||||||
|
Wina
|
||||||
|
Historia
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
parameters {
|
||||||
|
string(
|
||||||
|
defaultValue: 'maciejczajka',
|
||||||
|
description: 'Kaggle username',
|
||||||
|
name: 'KAGGLE_USERNAME',
|
||||||
|
trim: false
|
||||||
|
)
|
||||||
|
password(
|
||||||
|
defaultValue: 'd8f044ad2b96d32372e22f9054c02bb1',
|
||||||
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||||
|
name: 'KAGGLE_KEY'
|
||||||
|
)
|
||||||
|
string(
|
||||||
|
defaultValue: '1',
|
||||||
|
description: 'Cutoff lines',
|
||||||
|
name: 'CUTOFF'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
environment {
|
||||||
|
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
|
||||||
|
KAGGLE_KEY="$params.KAGGLE_KEY"
|
||||||
|
CUTOFF="$params.CUTOFF"
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Checkout'){
|
||||||
|
steps {
|
||||||
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444356', url: 'https://git.wmi.amu.edu.pl/s444356/ium_444356.git']]])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Script'){
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||||
|
sh 'kaggle datasets list'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sh 'docker volume rm $(docker volume ls -qf dangling=true)'
|
||||||
|
sh './download.sh $CUTOFF'
|
||||||
|
archiveArtifacts artifacts: 'all_games.csv.dev, all_games.csv.test, all_games.csv.train', followSymlinks: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Wspierane przez Gitea polski Licencje API Strona
|
Loading…
Reference in New Issue
Block a user