ium_z487179/datasetStats/Jenkinsfile

37 lines
1012 B
Plaintext
Raw Normal View History

2023-04-14 23:55:01 +02:00
pipeline {
agent any
parameters {
2023-04-15 13:42:34 +02:00
buildSelector(
2023-04-14 23:58:41 +02:00
name: 'BUILD_SELECTOR',
2023-04-15 13:42:34 +02:00
defaultSelector: lastSuccessful(),
description: 'A build to take the artifacts from'
2023-04-14 23:55:01 +02:00
)
}
stages {
stage('Copy artifacts') {
steps {
script {
copyArtifacts(
projectName: 'z-s487179-create-dataset',
selector: buildParameter('BUILD_SELECTOR'),
2023-04-15 14:34:11 +02:00
target: './datasetStats'
2023-04-14 23:55:01 +02:00
)
}
}
}
2023-04-15 14:13:51 +02:00
stage('Run sh file') {
steps {
2023-04-20 20:06:43 +02:00
script {
sh 'ls -l'
2023-04-20 20:08:18 +02:00
docker.image('docker-iamge').inside {
2023-04-20 20:06:43 +02:00
dir('./datasetStats') {
sh 'ls -l'
sh 'python3 ./datasetStats.py'
}
2023-04-20 20:04:30 +02:00
}
}
2023-04-15 14:13:51 +02:00
}
}
2023-04-14 23:55:01 +02:00
}
2023-04-15 00:13:06 +02:00
}