Some order
This commit is contained in:
parent
4098421acb
commit
dae281faf3
|
|
@ -19,10 +19,6 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 8800:8800/tcp # exposing port for www
|
- 8800:8800/tcp # exposing port for www
|
||||||
|
|
||||||
|
|
||||||
extra_hosts:
|
|
||||||
- "host.docker.internal:host-gateway"
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
# System dir with keystore
|
# System dir with keystore
|
||||||
- ${IMPORTANT_DATA}/_start_system_on_docker_:/_system_:ro
|
- ${IMPORTANT_DATA}/_start_system_on_docker_:/_system_:ro
|
||||||
|
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
||||||
def projects = [
|
|
||||||
"zaklik-by-spring-boot"
|
|
||||||
]
|
|
||||||
|
|
||||||
def git_take( projects ){
|
|
||||||
|
|
||||||
if( 0 == projects.size() ){
|
|
||||||
def git_pull ="git -c http.sslVerify=false pull"
|
|
||||||
sh( git_pull )
|
|
||||||
sh("git log -n 1")
|
|
||||||
}else{
|
|
||||||
for( project in projects ){
|
|
||||||
def git_take ="git -c http.sslVerify=false "
|
|
||||||
if( fileExists( project ) ){
|
|
||||||
git_take = git_take +"-C "+project+" pull"
|
|
||||||
}else{
|
|
||||||
git_take = git_take +"clone "+ "https://artikus.dynu.net:7990/r/"+project+".git"
|
|
||||||
}
|
|
||||||
sh( git_take )
|
|
||||||
dir( "./" + project ){
|
|
||||||
sh("git log -n 1")
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
def disableSafeDirCheck(){
|
|
||||||
def disableSafeDirCheck="git config --global --add safe.directory '*'"
|
|
||||||
sh( disableSafeDirCheck )
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
pipeline {
|
|
||||||
|
|
||||||
agent any
|
|
||||||
|
|
||||||
stages {
|
|
||||||
stage('Update from git') {
|
|
||||||
steps {
|
|
||||||
script{
|
|
||||||
disableSafeDirCheck()
|
|
||||||
}
|
|
||||||
dir("/_programs_"){
|
|
||||||
script{
|
|
||||||
git_take( projects )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue