This commit is contained in:
Norbert Walkowiak 2023-04-15 11:52:56 +02:00
parent 66e516c596
commit b5e17b73d3

15
Jenkinsfile vendored
View File

@ -32,16 +32,25 @@ pipeline {
}
}
}
stage('checkout') {
stage('Checkout') {
steps {
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487175/ium_z487175.git'
}
}
stage('script') {
stage('Shell script') {
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 '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
}
}
}
}