Update 'Jenkinsfile_create_dataset'
This commit is contained in:
parent
368f029d72
commit
3e7414e004
@ -4,13 +4,13 @@ pipeline {
|
||||
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
||||
parameters{
|
||||
string(
|
||||
defaultValue: 'patrykgaka',
|
||||
defaultValue: '',
|
||||
description: 'Kaggle username',
|
||||
name: 'KAGGLE_USERNAME',
|
||||
trim: false
|
||||
)
|
||||
password(
|
||||
defaultValue: 'd14370cec1714b0cd1ef2875038b5950',
|
||||
defaultValue: '',
|
||||
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||
name: 'KAGGLE_KEY'
|
||||
)
|
||||
@ -22,44 +22,45 @@ pipeline {
|
||||
)
|
||||
}
|
||||
stages {
|
||||
stage('clear_all') {
|
||||
stage('clear_before') {
|
||||
steps {
|
||||
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
|
||||
sh 'rm -rf *'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stage('Clone Git') {
|
||||
steps {
|
||||
sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686'
|
||||
// Run the maven build
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh 'kaggle datasets download -d rush4ratio/video-game-sales-with-ratings'
|
||||
sh 'unzip video-game-sales-with-ratings.zip -d ./ium_z434686'
|
||||
//unzip zipFile: 'video-game-sales-with-ratings.zip', dir: './ium_z434686'
|
||||
sh 'rm video-game-sales-with-ratings.zip'
|
||||
sh 'ls -a'
|
||||
sh 'ls -a ./ium_z434686'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Docker') {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
dir 'ium_z434686'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'ls -a'
|
||||
sh 'python ./ium_z434686/create-dataset.py'
|
||||
archiveArtifacts 'X_test.csv'
|
||||
archiveArtifacts 'X_dev.csv'
|
||||
archiveArtifacts 'X_train.csv'
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
dir 'ium_z434686'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'python ./ium_z434686/create-dataset.py'
|
||||
archiveArtifacts 'X_test.csv'
|
||||
archiveArtifacts 'X_dev.csv'
|
||||
archiveArtifacts 'X_train.csv'
|
||||
}
|
||||
}
|
||||
stage('clear_after') {
|
||||
steps {
|
||||
sh 'rm -rf *'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user