35 lines
923 B
Plaintext
35 lines
923 B
Plaintext
![]() |
pipeline {
|
||
|
agent any
|
||
|
parameters {
|
||
|
buildSelector(
|
||
|
name: 'BUILD_SELECTOR',
|
||
|
defaultSelector: lastSuccessful(),
|
||
|
description: 'A build to take the artifacts from'
|
||
|
)
|
||
|
}
|
||
|
stages {
|
||
|
stage('Copy artifacts') {
|
||
|
steps {
|
||
|
script {
|
||
|
copyArtifacts(
|
||
|
projectName: 'x1-create-dataset',
|
||
|
selector: buildParameter('BUILD_SELECTOR'),
|
||
|
target: './datasetStats'
|
||
|
)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
stage('Run sh file') {
|
||
|
steps {
|
||
|
script {
|
||
|
sh 'ls -l'
|
||
|
docker.image('docker-image').inside {
|
||
|
sh 'ls -l'
|
||
|
sh 'python3 ./datasetStats.py'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|