29 lines
710 B
Groovy
29 lines
710 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 >> data_stats.txt'
|
|
}
|
|
}
|
|
stage('archiveArtifacts') {
|
|
steps {
|
|
archiveArtifacts 'data_stats.txt'
|
|
}
|
|
}
|
|
}
|
|
}
|