ium_470607/lab5/create/Jenkinsfile

46 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-15 17:44:11 +02:00
cp ./lab5/create/Dockerfile .
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 {
2021-05-15 16:39:21 +02:00
stage('ls') {
steps {
2021-05-15 17:09:25 +02:00
sh '''
chmod +x script.sh
./script.sh
ls -lah
'''
2021-05-15 16:39:21 +02:00
}
}
2021-05-14 21:52:14 +02:00
stage('archive artifact') {
steps {
archiveArtifacts 'train.csv'
archiveArtifacts 'test.csv'
archiveArtifacts 'valid.csv'
}
}
}
}
}
2021-05-16 16:23:32 +02:00
post {
success {
2021-05-16 16:27:49 +02:00
build job: 's470607-training/master'
2021-05-16 16:23:32 +02:00
}
}
2021-05-14 21:52:14 +02:00
}