lab should set by dev env $lab
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sbin/auto_submit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/auto_submit b/sbin/auto_submit index c121ae0..ecc4d70 100755 --- a/sbin/auto_submit +++ b/sbin/auto_submit @@ -86,7 +86,7 @@ end option = { my_name: 'Auto Submit Robot', my_email: 'autosubmit@localhost', - lab: 'autosubmit' + lab: `awk '/^lab:\s/ {print $2; exit}' /etc/compass-ci/defaults/*.yaml`.chomp }
# fix verification problems when submit jobs by auto-submit service
option = { my_name: 'Auto Submit Robot', my_email: 'autosubmit@localhost',
- lab: 'autosubmit'
- lab: `awk '/^lab:\s/ {print $2; exit}' /etc/compass-ci/defaults/*.yaml`.chomp
better avoid use linux command in ruby script, you can optimize it as:
you can use YAML.load_file to get the key/values as a hash
Thanks, Luan Shengde
}
# fix verification problems when submit jobs by auto-submit service
2.23.0
- lab: `awk '/^lab:\s/ {print $2; exit}' /etc/compass-ci/defaults/*.yaml`.chomp
better avoid use linux command in ruby script, you can optimize it as:
you can use YAML.load_file to get the key/values as a hash
ok
Thanks, Yinsi
Thanks, Luan Shengde
}
# fix verification problems when submit jobs by auto-submit service
2.23.0