ium_z487186/Jenkinsfile2

33 lines
598 B
Plaintext
Raw Permalink Normal View History

2023-04-20 23:19:33 +02:00
pipeline {
2023-04-21 11:23:34 +02:00
agent {
dockerfile true
}
2023-04-20 23:19:33 +02:00
stages {
stage('Checkout') {
steps {
checkout scm
}
}
2023-04-21 13:21:38 +02:00
stage('CopyArtifacts') {
2023-04-20 23:19:33 +02:00
steps {
2023-04-21 13:11:48 +02:00
copyArtifacts projectName: 'z-s487186-create-dataset', selector: lastSuccessful()
2023-04-20 23:19:33 +02:00
}
2023-04-21 13:21:38 +02:00
}
2023-04-21 16:11:09 +02:00
stage('List') {
steps {
sh 'ls -la'
}
2023-04-21 13:21:38 +02:00
}
2023-04-20 23:19:33 +02:00
stage('Script') {
steps {
2023-04-21 13:03:23 +02:00
sh 'python3 main2.py > output.txt'
2023-04-20 23:25:19 +02:00
}
}
stage('ArchiveArtifacts') {
steps {
archiveArtifacts 'output.txt'
2023-04-20 23:19:33 +02:00
}
}
}
}