29 lines
699 B
Groovy
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'
|
|
}
|
|
}
|
|
}
|
|
}
|