ium_478841/jenkins/dockerstats.Jenkinsfile
2022-04-29 12:56:30 +02:00

17 lines
533 B
Plaintext

node {
stage('Copying artifacts') {
copyArtifacts fingerprintArtifacts: true, projectName: 's478841-create-dataset', selector: lastSuccessful()
}
docker.image('s478841-image:latest').inside('--name stats_giver') {
stage('Data stats in container') {
sh 'ls -al'
sh 'chmod +x ./scripts/data_stats.sh'
sh './scripts/data_stats.sh'
}
stage('Archive artifacts') {
archiveArtifacts artifacts: 'stats.txt', followSymlinks: false
}
}
}