ium_444356/Jenkinsfile_docker2

24 lines
613 B
Plaintext

pipeline {
agent {
docker {
image 'ubuntu:latest'
}
}
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
name: 'BUILD_SELECTOR',
description: 'Which build to use for copying artifacts'
)
}
stages {
stage("Script") {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444356-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh " ./stats.sh"
sh "python3 ./Zajecia_2/main.py"
archiveArtifacts 'lines.txt'
}
}
}
}