update
This commit is contained in:
parent
4a39d75d3b
commit
6332fb5dee
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -5,7 +5,7 @@ node('Node-Dev-100163') {
|
|||||||
checkout scm
|
checkout scm
|
||||||
}
|
}
|
||||||
stage('Cleanup') {
|
stage('Cleanup') {
|
||||||
sh './setup/update_tag.sh ${env.BRANCH_NAME}'
|
sh 'make update_tag CURR_BRANCH=${env.BRANCH_NAME}'
|
||||||
sh 'make clean_up'
|
sh 'make clean_up'
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
2
Makefile
2
Makefile
@ -39,6 +39,8 @@ run_server_docker:
|
|||||||
fi
|
fi
|
||||||
cd ${DEPLOY_PATH} &&\
|
cd ${DEPLOY_PATH} &&\
|
||||||
${DOCKER_COMPOSE_CMD} up -d
|
${DOCKER_COMPOSE_CMD} up -d
|
||||||
|
update_tag:
|
||||||
|
${SETUP_PATH}/update_tag.sh $(CURR_BRANCH)
|
||||||
restore_database:
|
restore_database:
|
||||||
@echo "Checking for backup.zip in container..."
|
@echo "Checking for backup.zip in container..."
|
||||||
@if sudo docker exec ${CONTAINER_ID} test -f /etc/odoo/backup/backup.zip; then \
|
@if sudo docker exec ${CONTAINER_ID} test -f /etc/odoo/backup/backup.zip; then \
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
set +x
|
||||||
sed -i "s/TAG := \$(shell rev-parse --abbrev-ref HEAD)/TAG := $1/g" Makefile
|
sed -i "s/TAG := \$(shell rev-parse --abbrev-ref HEAD)/TAG := $1/g" Makefile
|
||||||
|
Loading…
Reference in New Issue
Block a user