changed Jenkinsfile_2
This commit is contained in:
parent
bc727c8ef3
commit
0609abeb7a
@ -11,21 +11,25 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Load Artifact') {
|
stage('Load Artifact') {
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
copyArtifacts fingerprintArtifacts: true, projectName: 's452627-create-dataset', selector: buildParameter("BUILD_SELECTOR")
|
copyArtifacts fingerprintArtifacts: true, projectName: 's452627-create-dataset', selector: buildParameter("BUILD_SELECTOR")
|
||||||
|
def previousFile = readFile(file: "output.txt")
|
||||||
|
echo("The previous build artifact was: ${previousFile}")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Run Script') {
|
stage('Run Script') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
sh "chmod +x -R ${env.WORKSPACE}"
|
sh "chmod +x -R ${env.WORKSPACE}"
|
||||||
sh './make_statistic.sh | tee output.txt'
|
sh './make_statistic.sh | tee output_statistic.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
stage('Archive Output') {
|
stage('Archive Output') {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts 'output.txt'
|
archiveArtifacts 'output_statistic.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user