ium_470607/lab5/create/Jenkinsfile

38 lines
1016 B
Plaintext
Raw Normal View History

2021-05-14 21:52:14 +02:00
pipeline {
agent none
stages {
stage('copy files') {
agent any
steps {
sh '''
cp ./lab5/script.sh .
cp ./lab5/create_dataset.py .
cp ./lab5/Dockerfile .
cp ./lab5/requirements.txt .
'''
}
}
stage('docker') {
agent {
dockerfile true
}
stages {
stage('script') {
steps {
sh '''
chmod +x script.sh
./script.sh'''
}
}
stage('archive artifact') {
steps {
archiveArtifacts 'train.csv'
archiveArtifacts 'test.csv'
archiveArtifacts 'valid.csv'
}
}
}
}
}
}