ium_434780/Jenkinsfile
sadurska@trui.pl da40e1a0e6
Some checks failed
s434780-training/pipeline/head There was a failure building this commit
Multipipeline #wip
2021-05-16 21:38:05 +02:00

32 lines
1.2 KiB
Groovy

pipeline{
agent any
//properties([parameters([text(defaultValue: '1000', description: 'Number of lines', name: 'CUTOFF')])])
stages {
stage('checkout: Check out from version control'){
steps{
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '321737ab-1c4d-475f-9667-513cf19ba596', url: 'https://git.wmi.amu.edu.pl/s434780/ium_434780.git']]])
}
}
stage('docker')
{
steps{
script{
def img = docker.build('s434780/ium:1.0')
img.inside{
sh '''
chmod +x script.sh
./script.sh'''
}
}
}
}
stage('Archive artifacts'){
steps{
archiveArtifacts 'test.csv'
archiveArtifacts 'dev.csv'
archiveArtifacts 'train.csv'
}
}
}
}