Multipipeline #wip

This commit is contained in:
sadurska@trui.pl 2021-05-16 21:33:08 +02:00
parent 3e683185bd
commit fdb16e5984

13
Jenkinsfile vendored
View File

@ -1,11 +1,24 @@
pipeline{ pipeline{
agent any agent any
//properties([parameters([text(defaultValue: '1000', description: 'Number of lines', name: 'CUTOFF')])])
stages { stages {
stage('checkout: Check out from version control'){ stage('checkout: Check out from version control'){
steps{ 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']]]) 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 './script.sh'
}
}
}
}
stage('sh: Shell Script'){ stage('sh: Shell Script'){
steps{ steps{
sh ''' sh '''