Compare commits
1 Commits
2b2c11d8a4
...
2cbe3f49aa
Author | SHA1 | Date | |
---|---|---|---|
|
2cbe3f49aa |
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -73,12 +73,10 @@ pipeline {
|
|||||||
label 'deploy'
|
label 'deploy'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh "rm -rf *"
|
|
||||||
unstash "deploy_ipk"
|
unstash "deploy_ipk"
|
||||||
sh "mkdir -p /srv/files.blackfinn.de/data/ipk/${params.BRANCH}"
|
sh "mkdir -p /srv/files.blackfinn.de/data/ipk/${params.BRANCH}"
|
||||||
sh "rsync -avz build/tmp/deploy/ipk/ /srv/files.blackfinn.de/data/ipk/${params.BRANCH} || exit 0"
|
sh "rsync -avz build/tmp/deploy/ipk/ /srv/files.blackfinn.de/data/ipk/${params.BRANCH} || exit 0"
|
||||||
sh "ipkindex /srv/files.blackfinn.de/data/ipk/${params.BRANCH}"
|
sh "ipkindex /srv/files.blackfinn.de/data/ipk/${params.BRANCH}"
|
||||||
sh "rm -rf *"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy images') {
|
stage('Deploy images') {
|
||||||
@ -86,7 +84,6 @@ pipeline {
|
|||||||
label 'deploy'
|
label 'deploy'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh "rm -rf *"
|
|
||||||
unstash "deploy_images"
|
unstash "deploy_images"
|
||||||
sh "mkdir -p /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
|
sh "mkdir -p /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
|
||||||
script {
|
script {
|
||||||
@ -105,7 +102,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
sh "mv build/tmp/deploy/images/${params.MACHINE}/console-image-${params.MACHINE}.manifest /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
|
sh "mv build/tmp/deploy/images/${params.MACHINE}/console-image-${params.MACHINE}.manifest /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
|
||||||
sh "rm -rf *"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user