This commit is contained in:
Natalia Szymczyk 2023-04-20 23:25:19 +02:00
parent 1f73d4adf9
commit 01f03013e9
2 changed files with 11 additions and 9 deletions

View File

@ -9,20 +9,18 @@ pipeline {
}
stage('CopyArtifacts'){
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s487186-create-dataset', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s487186-create-dataset', selector: lastSuccessful()
}
}
stage('Script') {
steps {
sh 'echo test'
sh './script2.sh > output.txt'
}
}
stage('ArchiveArtifacts') {
steps {
archiveArtifacts 'output.txt'
}
}
// stage('ArchiveArtifacts') {
// steps {
// archiveArtifacts 'liver.data.train'
// archiveArtifacts 'liver.data.test'
// archiveArtifacts 'liver.data.dev'
// }
// }
}
}

4
script2.sh Normal file
View File

@ -0,0 +1,4 @@
echo "Ilość linii w plikach:"
wc -l liver.data.train
wc -l liver.data.test
wc -l liver.data.dev