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 .
2021-05-15 15:05:42 +02:00
cp ./lab5/create/smart-grid-stability.zip .
2021-05-14 21:54:06 +02:00
cp ./lab5/create/requirements.txt .
2021-05-14 21:52:14 +02:00
'''
}
}
stage('docker') {
agent {
2021-05-15 14:11:08 +02:00
dockerfile true
2021-05-14 21:52:14 +02:00
}
stages {
stage('script') {
steps {
2021-05-15 14:11:08 +02:00
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh '''
chmod +x script.sh
./script.sh'''
}
2021-05-14 21:52:14 +02:00
}
}
stage('archive artifact') {
steps {
archiveArtifacts 'train.csv'
archiveArtifacts 'test.csv'
archiveArtifacts 'valid.csv'
}
}
}
}
}
}