This commit is contained in:
Norbert Walkowiak 2023-04-17 22:47:53 +02:00
parent 39f4eb3752
commit 4a15d10bde

8
Jenkinsfile vendored
View File

@ -57,16 +57,16 @@ pipeline {
sh 'docker build --no-cache -t ium -f dockerfile .' sh 'docker build --no-cache -t ium -f dockerfile .'
} }
} }
stage('Run command in container') { stage('Run command in container') {
steps { steps {
script { script {
// Uruchamia instancje obrazu ium // Uruchamia instancje obrazu ium
sh 'docker run -d ium' sh 'docker run -it ium'
// Uruchomienie skryptu w kontenerze // Uruchomienie skryptu w kontenerze
sh 'docker exec ium python3 /app/s487175-create-dataset-script.py >> output.txt' sh 'docker exec ium python3 /app/s487175-create-dataset-script.py >> output.txt'
} }
} }
} }
stage('Archive file') { stage('Archive file') {
steps { steps {
archiveArtifacts artifacts: 'output.txt, diamonds.csv', fingerprint: true archiveArtifacts artifacts: 'output.txt, diamonds.csv', fingerprint: true