ium_470607/lab5/create/Jenkinsfile

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-05-14 21:52:14 +02:00
pipeline {
agent none
stages {
stage('copy files') {
agent any
steps {
sh '''
2021-05-14 21:54:06 +02:00
cp ./lab5/create/script.sh .
cp ./lab5/create/create_dataset.py .
cp ./lab5/create/Dockerfile .
cp ./lab5/create/requirements.txt .
2021-05-14 21:52:14 +02:00
'''
}
}
stage('docker') {
agent {
2021-05-15 14:02:57 +02:00
dockerfile {
filename 'Dockerfile'
2021-05-15 14:06:38 +02:00
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
2021-05-15 14:02:57 +02:00
}
2021-05-14 21:52:14 +02:00
}
stages {
stage('script') {
steps {
sh '''
chmod +x script.sh
./script.sh'''
}
}
stage('archive artifact') {
steps {
archiveArtifacts 'train.csv'
archiveArtifacts 'test.csv'
archiveArtifacts 'valid.csv'
}
}
}
}
}
}