💐
This commit is contained in:
parent
c7362f4b15
commit
d5eda17627
@ -1,7 +1,7 @@
|
|||||||
node {
|
node {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
def local_image = docker.build("local-image")
|
def local_image = docker.build("s452639-image")
|
||||||
|
|
||||||
local_image.inside {
|
local_image.inside {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
node {
|
node {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
def local_image = docker.build("local-image")
|
def local_image = docker.build("s452639-image")
|
||||||
|
|
||||||
local_image.inside {
|
local_image.inside {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
21
training.jenkinsfile
Normal file
21
training.jenkinsfile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
node {
|
||||||
|
checkout scm
|
||||||
|
|
||||||
|
def local_image = docker.build("s452639-image")
|
||||||
|
|
||||||
|
local_image.inside {
|
||||||
|
stage('Build') {
|
||||||
|
checkout([$class: 'GitSCM', branches: [[name: 'ztm']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452639/ium_452639']]])
|
||||||
|
|
||||||
|
copyArtifacts fingerprintArtifacts: true,
|
||||||
|
projectName: 's452639-create-dataset',
|
||||||
|
selector: buildParameter('BUILD_SELECTOR'),
|
||||||
|
flatten: true,
|
||||||
|
target: 'src/'
|
||||||
|
|
||||||
|
sh 'cd src; python tf_train.py'
|
||||||
|
archiveArtifacts artifacts: 'src/model.keras', followSymlinks: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user