Multipipeline #wip
This commit is contained in:
parent
3e683185bd
commit
fdb16e5984
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -1,11 +1,24 @@
|
||||
pipeline{
|
||||
agent any
|
||||
stages{
|
||||
//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 './script.sh'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
stage('sh: Shell Script'){
|
||||
steps{
|
||||
sh '''
|
||||
|
Loading…
Reference in New Issue
Block a user