2021-05-15 17:34:13 +02:00
|
|
|
pipeline {
|
|
|
|
agent none
|
2021-05-15 17:41:29 +02:00
|
|
|
parameters {
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR')
|
|
|
|
|
|
|
|
string(name: 'LEARNING_RATE', defaultValue: '0.0003', description: 'learning rate')
|
|
|
|
}
|
2021-05-15 17:34:13 +02:00
|
|
|
stages {
|
|
|
|
stage('copy files') {
|
|
|
|
agent any
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
cp ./lab5/train/script.sh .
|
|
|
|
cp ./lab5/train/train.py .
|
|
|
|
cp ./lab5/train/requirements.txt .
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('docker') {
|
2021-05-15 17:39:56 +02:00
|
|
|
agent { dockerfile true }
|
2021-05-15 17:34:13 +02:00
|
|
|
stages {
|
|
|
|
stage('copyArtifacts') {
|
|
|
|
steps {
|
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434684-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('ls') {
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
chmod +x script.sh
|
|
|
|
./script.sh
|
|
|
|
ls -lah
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('archive artifact') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'grid-stability-dense.h5'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|