clone repo in Jenkinsfile
This commit is contained in:
parent
310de32785
commit
4bf8099c97
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -1,10 +1,20 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Stage 1') {
|
stage('Hello') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Hello world!'
|
echo 'Hello world!'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Checkout') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
git credentialsId: 's444498', url: 'https://git.wmi.amu.edu.pl/s444498/ium_444498.git'
|
||||||
|
sh "ls -lart ./*"
|
||||||
|
sh "git branch -a"
|
||||||
|
sh "git checkout master"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user