2023-05-11 19:05:12 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
filename 'Dockerfile_2.build'
|
|
|
|
// dir 'build'
|
2023-05-11 19:06:49 +02:00
|
|
|
// label 'label'
|
2023-05-11 19:05:12 +02:00
|
|
|
//additionalBuildArgs '--build-arg version=1.0.2'
|
|
|
|
//args '-v /tmp:/tmp'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
parameters {
|
|
|
|
buildSelector (
|
|
|
|
name: 'BUILD_SELECTOR',
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts?',
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Load Artifact') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's452627-training', selector: buildParameter("BUILD_SELECTOR")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Run Script') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
//sh "chmod +x -R ${env.WORKSPACE}"
|
|
|
|
//sh './make_statistic.sh | tee output_statistic.txt'
|
|
|
|
// sh 'docker build . -t jhenyk/ium:latest'
|
|
|
|
// sh 'docker run jhenyk/ium:latest'
|
|
|
|
sh 'node --version'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
stage('Archive Output') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'testresults.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|