diff --git a/Jenkinsfile b/Jenkinsfile index 3462140..45a78eb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 + } + } } } \ No newline at end of file