Use shell.cmd with shell.executable
Rather than passing a string to the shell task and then using shell.args.executable to choose an explicit executable, use shell.cmd to set the actual script content so that shell.executable can be used to choose the shell. Change-Id: Ia24a21ce54746a486ba39c4eb7c32bc8470e32d4
This commit is contained in:
parent
39ddeb5144
commit
2db7071b10
@ -1,24 +1,24 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Run release scripts
|
||||
shell: |
|
||||
set -x
|
||||
shell:
|
||||
cmd: |
|
||||
set -x
|
||||
|
||||
RELEASES_DIR=$HOME/src/{{ zuul.project.canonical_name }}
|
||||
# Tell the launchpad script run from release.sh where its
|
||||
# credentials file is.
|
||||
export LP_CREDS_FILE=~/.launchpadlib/creds
|
||||
RELEASES_DIR=$HOME/src/{{ zuul.project.canonical_name }}
|
||||
# Tell the launchpad script run from release.sh where its
|
||||
# credentials file is.
|
||||
export LP_CREDS_FILE=~/.launchpadlib/creds
|
||||
|
||||
# Pass the location of the openstack/releases repo to
|
||||
# release_from_yaml.sh explicitly so it knows where to scan to
|
||||
# look for modified files.
|
||||
~/scripts/release-tools/release_from_yaml.sh $RELEASES_DIR
|
||||
RC1=$?
|
||||
# Pass the location of the openstack/releases repo to
|
||||
# release_from_yaml.sh explicitly so it knows where to scan to
|
||||
# look for modified files.
|
||||
~/scripts/release-tools/release_from_yaml.sh $RELEASES_DIR
|
||||
RC1=$?
|
||||
|
||||
# After we have tagged, create any new branches.
|
||||
~/scripts/release-tools/branch_from_yaml.sh $RELEASES_DIR
|
||||
RC2=$?
|
||||
# After we have tagged, create any new branches.
|
||||
~/scripts/release-tools/branch_from_yaml.sh $RELEASES_DIR
|
||||
RC2=$?
|
||||
|
||||
exit $(($RC1 + $RC2))
|
||||
args:
|
||||
exit $(($RC1 + $RC2))
|
||||
executable: /bin/bash
|
||||
|
@ -11,6 +11,6 @@
|
||||
become: yes
|
||||
|
||||
- name: Build the wheel mirror
|
||||
shell: ./scripts/wheel-build.sh {{ wheel_dir }} {{ wheel_python }}
|
||||
args:
|
||||
shell:
|
||||
cmd: ./scripts/wheel-build.sh {{ wheel_dir }} {{ wheel_python }}
|
||||
executable: /bin/bash
|
||||
|
Loading…
x
Reference in New Issue
Block a user