Fix branch path for promote job
We publish for branch stable/stein to stein and not to stable/stein.
Fix this.
# TODO(pabelanger): Update AFS credentials to say zuul-executor.
service_name: service/zuul-launcher@OPENSTACK.ORG
docs_master_path: "/afs/.openstack.org/docs/{{ zuul.project.short_name }}/latest"
- docs_branch_path: "/afs/.openstack.org/docs/{{ zuul.project.short_name }}/{{ zuul.branch | default('_error') }}"
+ docs_branch_path: "/afs/.openstack.org/docs/{{ zuul.project.short_name }}/{{ zuul.branch | default('_error') | regex_replace('^stable/', '') }}"
docs_tag_path: "/afs/.openstack.org/docs/{{ zuul.project.short_name }}/{{ zuul.tag | default('_error') }}"
- secret:
