Potential fix for jobs not appearing after creation, remove jobs after complete
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8aa3d78d6d
commit
567cac152f
|
@ -9,7 +9,9 @@ steps:
|
|||
- name: build
|
||||
path: /build
|
||||
commands:
|
||||
- echo "v1.2.1" > /build/version.txt
|
||||
- export VERSION="1.2.2"
|
||||
- echo $VERSION > /build/version.txt
|
||||
- echo "v$VERSION" > /build/release-version.txt
|
||||
- npm install
|
||||
- npm run build
|
||||
- cp -R dist /build/dist
|
||||
|
@ -31,8 +33,8 @@ steps:
|
|||
path: /build
|
||||
settings:
|
||||
gitea_server: https://git.meow.tf
|
||||
tag_file: /build/version.txt
|
||||
title_file: /build/version.txt
|
||||
tag_file: /build/release-version.txt
|
||||
title_file: /build/release-version.txt
|
||||
files: [ '/build/*' ]
|
||||
environment:
|
||||
PLUGIN_API_KEY:
|
||||
|
|
|
@ -48,7 +48,8 @@ ws.on('jobs', function(data) {
|
|||
|
||||
ws.on('job:create', function(job) {
|
||||
// Create new job component
|
||||
Vue.set(d.jobs, job.id, job);
|
||||
d.jobs[job.id] = job;
|
||||
Vue.set(d, 'jobs', d.jobs);
|
||||
});
|
||||
|
||||
ws.on('job:update', function(update) {
|
||||
|
@ -61,6 +62,11 @@ ws.on('job:update', function(update) {
|
|||
}
|
||||
});
|
||||
|
||||
ws.on('job:complete', function(job) {
|
||||
delete d.jobs[job.id];
|
||||
Vue.set(d, 'jobs', d.jobs);
|
||||
});
|
||||
|
||||
ws.on('job:progress', function(progress) {
|
||||
// Update component status bar for progress.job_id
|
||||
let job = d.jobs[progress.job_id];
|
||||
|
|
Loading…
Reference in New Issue