mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-10 17:45:36 +00:00
Show environ in every BuildProc (#526)
* Show environ in every BuildProc * show environ next to build proc Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
parent
ee67e9adb4
commit
34ff30010e
2 changed files with 27 additions and 4 deletions
|
@ -7,7 +7,29 @@
|
||||||
|
|
||||||
<div class="flex flex-col w-3/12 text-gray-200 dark:text-gray-400">
|
<div class="flex flex-col w-3/12 text-gray-200 dark:text-gray-400">
|
||||||
<div v-for="proc in build.procs" :key="proc.id">
|
<div v-for="proc in build.procs" :key="proc.id">
|
||||||
<div class="p-4 pb-1">{{ proc.name }}</div>
|
<div class="p-4 pb-1 flex flex-wrap items-center justify-between">
|
||||||
|
<span>{{ proc.name }}</span>
|
||||||
|
<div v-if="proc.environ" class="text-xs">
|
||||||
|
<div v-for="(value, key) in proc.environ" :key="key">
|
||||||
|
<span
|
||||||
|
class="
|
||||||
|
pl-2
|
||||||
|
pr-1
|
||||||
|
py-0.5
|
||||||
|
bg-gray-800
|
||||||
|
dark:bg-gray-600
|
||||||
|
border-2 border-gray-800
|
||||||
|
dark:border-gray-600
|
||||||
|
rounded-l-full
|
||||||
|
"
|
||||||
|
>{{ key }}</span
|
||||||
|
>
|
||||||
|
<span class="pl-1 pr-2 py-0.5 border-2 border-gray-800 dark:border-gray-600 rounded-r-full">{{
|
||||||
|
value
|
||||||
|
}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
v-for="job in proc.children"
|
v-for="job in proc.children"
|
||||||
:key="job.pid"
|
:key="job.pid"
|
||||||
|
|
|
@ -104,9 +104,10 @@ export type BuildProc = {
|
||||||
name: string;
|
name: string;
|
||||||
state: BuildStatus;
|
state: BuildStatus;
|
||||||
exit_code: number;
|
exit_code: number;
|
||||||
start_time: number;
|
environ?: Record<string, string>;
|
||||||
end_time: number;
|
start_time?: number;
|
||||||
machine: string;
|
end_time?: number;
|
||||||
|
machine?: string;
|
||||||
children?: BuildProc[];
|
children?: BuildProc[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue