jenkinsfile_stats added.
This commit is contained in:
parent
ea15c81737
commit
9d752838d9
30
Jenkinsfile_stats
Normal file
30
Jenkinsfile_stats
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
pipeline {
|
||||||
|
//agent { docker {image 'rokoch/ium:01' }}
|
||||||
|
agent any
|
||||||
|
parameters {
|
||||||
|
buildSelector(
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
description: 'Which build to use for copying artifacts',
|
||||||
|
name: 'BUILD_SELECTOR')
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Copy artifact') {
|
||||||
|
steps {
|
||||||
|
copyArtifacts filter: 'Global_Superstore22.csv,Global_Superstore2.csv.dev,Global_Superstore2.csv.test,Global_Superstore2.csv.train', fingerprintArtifacts: false, projectName: 's426206-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Clone repo') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
docker.image("rokoch/ium:01").inside {
|
||||||
|
sh 'rm -rf ium_426206'
|
||||||
|
sh 'git clone https://git.wmi.amu.edu.pl/s426206/ium_426206.git'
|
||||||
|
sh "chmod +x ium_426206/stats.sh"
|
||||||
|
sh "ium_426206/stats.sh | tee output.txt"
|
||||||
|
archiveArtifacts 'output.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user