jenkinsfile_train
Some checks failed
s437622-training/pipeline/head There was a failure building this commit
Some checks failed
s437622-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
7656ba3dc4
commit
4d8739503e
@ -13,7 +13,8 @@ pipeline{
|
|||||||
stage('Docker') {
|
stage('Docker') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
docker.image("jpogodzinski/ium:1").inside {
|
def img=docker.build('jpogodzinski/ium:1')
|
||||||
|
img.inside {
|
||||||
sh 'rm -rf ium_s437622'
|
sh 'rm -rf ium_s437622'
|
||||||
sh 'git clone https://git.wmi.amu.edu.pl/s437622/ium_s437622.git'
|
sh 'git clone https://git.wmi.amu.edu.pl/s437622/ium_s437622.git'
|
||||||
sh "chmod +x ium_s437622/stats.sh"
|
sh "chmod +x ium_s437622/stats.sh"
|
||||||
|
51
Jenkinsfile_train
Normal file
51
Jenkinsfile_train
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
parameters {
|
||||||
|
buildSelector(
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
description: 'Which build to use for copying artifacts',
|
||||||
|
name: 'BUILD_SELECTOR')
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('checkout') {
|
||||||
|
steps {
|
||||||
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s437622/ium_437622.git']]])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Copy artifact') {
|
||||||
|
steps {
|
||||||
|
copyArtifacts filter: 'dev.csv, train.csv, test.csv', fingerprintArtifacts: false, projectName: 's437622-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('docker') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
def img = docker.build('jpogodzinski/ium:1')
|
||||||
|
img.inside {
|
||||||
|
sh 'chmod +x zad5.py'
|
||||||
|
sh 'python3 ./zad5.py'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('end') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts 'model/saved_model.pb'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
//Wysłanie maila
|
||||||
|
emailext body: 'Success train', subject: 's437622 train', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
||||||
|
build job: 's426206-evaluation/master', string(name: 'BUILD_SELECTOR', value: '<StatusBuildSelector plugin="copyartifact@1.46"/>')]
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
failure {
|
||||||
|
emailext body: 'Failed train', subject: 's426206 train', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
curl -OL https://git.wmi.amu.edu.pl/s437622/ium_s437622/src/branch/master/games.csv
|
curl -OL https://git.wmi.amu.edu.pl/s437622/ium_s437622/src/branch/master/games.csv
|
||||||
tail -n +2 games.csv | shuf > chess.csv.shuf
|
tail -n +2 chess.csv | shuf > chess.csv.shuf
|
||||||
wc -l chess.csv
|
wc -l chess.csv
|
||||||
head -n 2006 chess.csv.shuf > test.csv
|
head -n 2006 chess.csv.shuf > test.csv
|
||||||
head -n 4012 chess.csv.shuf | tail -n 2006 > dev.csv
|
head -n 4012 chess.csv.shuf | tail -n 2006 > dev.csv
|
||||||
|
Loading…
Reference in New Issue
Block a user