update
This commit is contained in:
parent
66e516c596
commit
b5e17b73d3
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -32,16 +32,25 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487175/ium_z487175.git'
|
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487175/ium_z487175.git'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('script') {
|
stage('Shell script') {
|
||||||
steps {
|
steps {
|
||||||
|
sh 'kaggle datasets download -d shivam2503/diamonds > output.txt'
|
||||||
|
sh 'unzip -o diamonds.zip >> output.txt'
|
||||||
|
// przypisanie uprawnień
|
||||||
sh 'chmod +x s487175-create-dataset-script.py'
|
sh 'chmod +x s487175-create-dataset-script.py'
|
||||||
sh 'python3 ./s487175-create-dataset-script.py > output.txt'
|
// wywołanie skryptu z poprzednich zajęć
|
||||||
|
sh 'python3 ./s487175-create-dataset-script.py >> output.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Archive file') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts: 'output.txt, diamonds.csv', fingerprint: true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user