forked from theopenlab/spark
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request apache#118 from animationzl/use-role-export-vexxho…
…st-openrc Use export-vexxhost-openrc role in related jobs
- Loading branch information
Showing
4 changed files
with
61 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
- hosts: all | ||
become: yes | ||
roles: | ||
- export-vexxhost-openrc | ||
tasks: | ||
- shell: | ||
cmd: | | ||
# Use echo to delete extra spaces | ||
export OS_AUTH_TYPE=$(echo '{{ vexxhost_credentials.auth_type }}') | ||
export OS_IDENTITY_API_VERSION=$(echo '{{ vexxhost_credentials.identity_api_version }}') | ||
export OS_VOLUME_API_VERSION=$(echo '{{ vexxhost_credentials.volume_api_version }}') | ||
export OS_INTERFACE=$(echo '{{ vexxhost_credentials.interface }}') | ||
export OS_AUTH_URL=$(echo '{{ vexxhost_credentials.auth_url }}') | ||
export OS_PROJECT_ID=$(echo '{{ vexxhost_credentials.project_id }}') | ||
export OS_PROJECT_NAME=$(echo '{{ vexxhost_credentials.project_name }}') | ||
export OS_USER_DOMAIN_NAME=$(echo '{{ vexxhost_credentials.user_domain_name }}') | ||
export OS_PROJECT_DOMAIN_ID=$(echo '{{ vexxhost_credentials.project_domain_id }}') | ||
export OS_USERNAME=$(echo '{{ vexxhost_credentials.username }}') | ||
export OS_PASSWORD=$(echo '{{ vexxhost_credentials.password }}') | ||
export OS_REGION_NAME=$(echo '{{ vexxhost_credentials.region_name }}') | ||
set -x | ||
set -e | ||
set -o pipefail | ||
go get -u github.com/Masterminds/glide | ||
TESTARGS='-v' make test 2>&1 | tee $TEST_RESULTS_TXT | ||
executable: /bin/bash | ||
chdir: '{{ zuul.project.src_dir }}' | ||
environment: '{{ golang_env }}' | ||
environment: '{{ golang_env | combine(vexxhost_openrc) }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters