runtime merge
Demo the runtime global vars and local vars in func can be merged too
Demo
source
Main task yaml file
scopes:
- name: global
vars:
a: global-a
b: global-b
c: global-c
d: global-d
- name: prod
members: [dr, prod]
vars:
a: prod-a
c: prod-c
- name: nonprod
members:
- dev
- st
- staging
vars:
a: non-prod-a
b: non-prod-b
c: non-prod-c
- name: staging
vars:
a: staging-a
b: staging-b
- name: dev
vars:
a: dev-a
c: dev-c
vars:
a: runtime-a
e: runtime-e
k: runtime-k
tasks:
- name: task
task:
- func: shell
vars:
e: local-e
m: local-m
do:
- echo "test out the var scopes only"
Main log file
loading [Config]: ./tests/functests/upconfig.yml
Main config:
Version -> 1.0.0
RefDir -> ./tests/functests
WorkDir -> cwd
AbsWorkDir -> /up_project/up
TaskFile -> c0011
Verbose -> vvv
ModuleName -> self
ShellType -> /bin/sh
MaxCallLayers -> 8
Timeout -> 3600000
MaxModuelCallLayers -> 256
EntryTask -> task
ModRepoUsernameRef ->
ModRepoPasswordRef ->
work dir: /up_project/up
-exec task: task
loading [Task]: ./tests/functests/c0011
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
Task1: [task ==> task: ]
-Step1:
self: final context exec vars:
(*core.Cache)({
"d": "global-d",
"a": "runtime-a",
"b": "non-prod-b",
"up_runtime_task_layer_number": 0,
"m": "local-m",
"e": "local-e",
"k": "runtime-k",
"c": "dev-c"
})
cmd( 1):
echo "test out the var scopes only"
-
test out the var scopes only
-
.. ok
. ok
Logs with different verbose level
Raw logs with different verbose level