Merge branch 'dev' into 2770-supplier_address
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
47e36913a1
|
@ -13,15 +13,6 @@ pipeline {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
if (!env.GIT_COMMITTER_EMAIL) {
|
|
||||||
env.COMMITTER_EMAIL = sh(
|
|
||||||
script: 'git --no-pager show -s --format="%ae"',
|
|
||||||
returnStdout: true
|
|
||||||
).trim()
|
|
||||||
} else {
|
|
||||||
env.COMMITTER_EMAIL = env.GIT_COMMITTER_EMAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (env.BRANCH_NAME) {
|
switch (env.BRANCH_NAME) {
|
||||||
case 'master':
|
case 'master':
|
||||||
env.NODE_ENV = 'production'
|
env.NODE_ENV = 'production'
|
||||||
|
@ -41,7 +32,7 @@ pipeline {
|
||||||
load env.GROOVY_FILE
|
load env.GROOVY_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
sh 'printenv'
|
setEnv()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Install') {
|
stage('Install') {
|
||||||
|
@ -86,16 +77,14 @@ pipeline {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
}}
|
}}
|
||||||
environment {
|
environment {
|
||||||
CREDS = credentials('docker-registry')
|
CREDENTIALS = credentials('docker-registry')
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
nodejs('node-v12') {
|
nodejs('node-v12') {
|
||||||
sh 'gulp build'
|
sh 'gulp build'
|
||||||
}
|
}
|
||||||
|
|
||||||
sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'
|
dockerBuild()
|
||||||
sh 'docker-compose build --parallel'
|
|
||||||
sh 'docker-compose push'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
|
@ -103,6 +92,9 @@ pipeline {
|
||||||
branch 'test'
|
branch 'test'
|
||||||
branch 'master'
|
branch 'master'
|
||||||
}}
|
}}
|
||||||
|
environment {
|
||||||
|
DOCKER_HOST = "${env.SWARM_HOST}"
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
sh "docker stack deploy --with-registry-auth --compose-file docker-compose.yml ${env.STACK_NAME}"
|
sh "docker stack deploy --with-registry-auth --compose-file docker-compose.yml ${env.STACK_NAME}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,9 @@ services:
|
||||||
- 80
|
- 80
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.role == worker
|
||||||
back:
|
back:
|
||||||
image: registry.verdnatura.es/salix-back:${BRANCH_NAME:?}
|
image: registry.verdnatura.es/salix-back:${BRANCH_NAME:?}
|
||||||
build: .
|
build: .
|
||||||
|
@ -31,6 +34,9 @@ services:
|
||||||
- /mnt/storage/image:/var/lib/salix/image
|
- /mnt/storage/image:/var/lib/salix/image
|
||||||
deploy:
|
deploy:
|
||||||
replicas: ${BACK_REPLICAS:?}
|
replicas: ${BACK_REPLICAS:?}
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.role == worker
|
||||||
configs:
|
configs:
|
||||||
datasources:
|
datasources:
|
||||||
external: true
|
external: true
|
||||||
|
|
|
@ -28,8 +28,11 @@ class Controller extends Section {
|
||||||
if (!value) return;
|
if (!value) return;
|
||||||
|
|
||||||
this.loadData().then(() => {
|
this.loadData().then(() => {
|
||||||
if (this.$params.sendSMS)
|
if (this.$params.sendSMS) {
|
||||||
this.showSMSDialog();
|
this.showSMSDialog({
|
||||||
|
message: this.$params.message
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
module="ticket"
|
module="ticket"
|
||||||
description="$ctrl.ticket.client.name">
|
description="$ctrl.ticket.client.name">
|
||||||
<slot-dot-menu>
|
<slot-dot-menu>
|
||||||
<vn-ticket-descriptor-menu ticket-id="$ctrl.ticket.id" parent-reload="$ctrl.cardReload()"/>
|
<vn-ticket-descriptor-menu
|
||||||
|
vn-id="descriptorMenu"
|
||||||
|
ticket-id="$ctrl.ticket.id"
|
||||||
|
parent-reload="$ctrl.cardReload()"
|
||||||
|
/>
|
||||||
</slot-dot-menu>
|
</slot-dot-menu>
|
||||||
<slot-body>
|
<slot-body>
|
||||||
<div class="attributes">
|
<div class="attributes">
|
||||||
|
|
|
@ -19,7 +19,11 @@
|
||||||
ng-click="$ctrl.setOkState()"
|
ng-click="$ctrl.setOkState()"
|
||||||
vn-tooltip="Change ticket state to 'Ok'">
|
vn-tooltip="Change ticket state to 'Ok'">
|
||||||
</vn-button>
|
</vn-button>
|
||||||
<vn-ticket-descriptor-menu ticket-id="$ctrl.summary.id" parent-reload="$ctrl.reload()"/>
|
<vn-ticket-descriptor-menu
|
||||||
|
ng-if="!$ctrl.isTicketModule"
|
||||||
|
ticket-id="$ctrl.summary.id"
|
||||||
|
parent-reload="$ctrl.reload()"
|
||||||
|
/>
|
||||||
</h5>
|
</h5>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-one>
|
<vn-one>
|
||||||
|
|
|
@ -40,6 +40,11 @@ class Controller extends Summary {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isTicketModule() {
|
||||||
|
const path = this.$state.getCurrentPath()[1];
|
||||||
|
return path.state.name === 'ticket';
|
||||||
|
}
|
||||||
|
|
||||||
get isEditable() {
|
get isEditable() {
|
||||||
try {
|
try {
|
||||||
return !this.ticket.ticketState.state.alertLevel;
|
return !this.ticket.ticketState.state.alertLevel;
|
||||||
|
|
|
@ -45,10 +45,10 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="5%">{{$t('author')}}</th>
|
<th width="5%">{{$t('author')}}</th>
|
||||||
<th width="5%">{{$t('dated')}}</th>
|
<th width="15%">{{$t('dated')}}</th>
|
||||||
<th width="30%">{{$t('ticketSubject')}}</th>
|
<th width="25%">{{$t('ticketSubject')}}</th>
|
||||||
<th width="30%">{{$t('ticketDescription')}}</th>
|
<th width="30%">{{$t('ticketDescription')}}</th>
|
||||||
<th width="30%">{{$t('resolution')}}</th>
|
<th width="20%">{{$t('resolution')}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody v-for="ticket in technician.tickets">
|
<tbody v-for="ticket in technician.tickets">
|
||||||
|
|
Loading…
Reference in New Issue