ium_434780/Jenkinsfile

37 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-04-19 14:48:40 +02:00
pipeline{
2021-04-20 21:27:46 +02:00
agent any
2021-05-16 21:33:08 +02:00
//properties([parameters([text(defaultValue: '1000', description: 'Number of lines', name: 'CUTOFF')])])
stages {
2021-04-19 14:48:40 +02:00
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']]])
}
}
2021-05-16 21:33:08 +02:00
stage('docker')
{
steps{
script{
def img = docker.build('s434780/ium:1.0')
img.inside{
sh './script.sh'
}
}
}
}
2021-04-19 14:48:40 +02:00
stage('sh: Shell Script'){
steps{
sh '''
chmod +x script.sh
./script.sh'''
2021-04-19 14:48:40 +02:00
}
}
stage('Archive artifacts'){
steps{
archiveArtifacts 'test.csv'
archiveArtifacts 'dev.csv'
archiveArtifacts 'train.csv'
}
}
}
2021-04-17 19:50:37 +02:00
}