Updated node version
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2023-02-27 08:39:14 +01:00
parent 1528a3649f
commit 323e467371
2 changed files with 5 additions and 12 deletions

8
Jenkinsfile vendored
View File

@ -31,8 +31,8 @@ pipeline {
NODE_ENV = "" NODE_ENV = ""
} }
steps { steps {
nodejs('node-v14') { nodejs('node-v18') {
sh 'npm install -g @quasar/cli' // sh 'npm install -g @quasar/cli'
sh 'npm install --no-audit --prefer-offline' sh 'npm install --no-audit --prefer-offline'
} }
} }
@ -48,7 +48,7 @@ pipeline {
parallel { parallel {
stage('Frontend') { stage('Frontend') {
steps { steps {
nodejs('node-v14') { nodejs('node-v18') {
sh 'npm run test:unit:ci' sh 'npm run test:unit:ci'
} }
} }
@ -64,7 +64,7 @@ pipeline {
CREDENTIALS = credentials('docker-registry') CREDENTIALS = credentials('docker-registry')
} }
steps { steps {
nodejs('node-v14') { nodejs('node-v18') {
sh 'quasar build' sh 'quasar build'
} }
dockerBuild() dockerBuild()

View File

@ -1,4 +1,4 @@
import { onMounted, onUnmounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import axios from 'axios'; import axios from 'axios';
import { useArrayDataStore } from 'stores/useArrayDataStore'; import { useArrayDataStore } from 'stores/useArrayDataStore';
@ -34,13 +34,6 @@ export function useArrayData(key, userOptions) {
} }
}); });
onUnmounted(() => {
// if (arrayDataStore.get(key)) {
// arrayDataStore.clear(key);
// }
// do stuff
});
async function fetch({ append = false }) { async function fetch({ append = false }) {
if (!store.url) return; if (!store.url) return;