script.sh
This commit is contained in:
parent
597d1753ac
commit
1101735e95
1
.gitignore
vendored
1
.gitignore
vendored
@ -57,3 +57,4 @@ docs/source/changelog.md
|
||||
|
||||
#fifa dataset
|
||||
fifa19*
|
||||
*.csv
|
35
Jenkinsfile
vendored
35
Jenkinsfile
vendored
@ -1,9 +1,40 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Stage 1') {
|
||||
stage('Preparation') {
|
||||
properties([
|
||||
parameters([
|
||||
string(
|
||||
defaultValue: 'annadnowak',
|
||||
description: 'Kaggle username',
|
||||
name: 'KAGGLE_USERNAME',
|
||||
trim: false
|
||||
),
|
||||
password(
|
||||
defaultValue: '',
|
||||
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||
name: 'KAGGLE_KEY'
|
||||
)
|
||||
])
|
||||
])
|
||||
}
|
||||
stage('checkout: Check out from version control') {
|
||||
steps {
|
||||
echo 'Hello world!'
|
||||
git 'https://git.wmi.amu.edu.pl/s434760/ium_434760.git'
|
||||
}
|
||||
}
|
||||
stage('sh: Shell Script')
|
||||
{
|
||||
steps {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh './script.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('archive artifacts') {
|
||||
steps {
|
||||
archiveArtifacts 'output.txt'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
7
script.sh
Normal file
7
script.sh
Normal file
@ -0,0 +1,7 @@
|
||||
# kaggle datasets download -d karangadiya/fifa19
|
||||
unzip -o fifa19.zip
|
||||
head -n 1 data.csv > header.csv
|
||||
tail -n +2 data.csv| shuf > data_shuf.csv
|
||||
head -n 3330 data_shuf.csv > test.csv
|
||||
head -n 6660 data_shuf.csv | tail -n 3330 > validation.csv
|
||||
tail -n 9984 data_shuf.csv > train.csv
|
Loading…
Reference in New Issue
Block a user