ium_470607/lab5/create/Jenkinsfile
2021-05-15 15:17:10 +02:00

44 lines
1.3 KiB
Groovy

pipeline {
agent none
stages {
stage('copy files') {
agent any
steps {
sh '''
cp ./lab5/create/script.sh .
cp ./lab5/create/create_dataset.py .
cp ./lab5/create/smart-grid-stability.zip .
cp ./lab5/create/requirements.txt .
'''
}
}
stage('docker') {
agent {
dockerfile true
}
stages {
stage('script') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh '''
ls -lah
chmod +x script.sh
./script.sh
ls -lah
'''
}
}
}
stage('archive artifact') {
steps {
archiveArtifacts 'train.csv'
archiveArtifacts 'test.csv'
archiveArtifacts 'valid.csv'
}
}
}
}
}
}