ium_434766/copyArtiJenkins/Jenkinsfile
2021-04-10 13:22:11 +02:00

29 lines
699 B
Groovy

pipeline {
agent any
stages {
stage('checkout') {
steps {
git 'https://git.wmi.amu.edu.pl/s434766/ium_434766.git'
copyArtifacts fingerprintArtifacts: true, projectName: 's434766-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Docker image'){
agent {
docker {
image 'owczarczykp/ium_s434766'
}
}
steps {
sh 'python3 ./stats.py > stats.txt'
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'stats.txt'
}
}
}
}