This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
forked from dconde-jx-test/environment-simple-tekton
-
Notifications
You must be signed in to change notification settings - Fork 490
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 #67 from ccojocar/volumes-for-secrets
fix: set the environment variables directly from secrets instead of using step credential command
- Loading branch information
Showing
3 changed files
with
25 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,6 @@ export GH_USERNAME="jenkins-x-bot-test" | |
export GH_EMAIL="[email protected]" | ||
export GH_OWNER="cb-kubecd" | ||
|
||
export GH_CREDS_PSW="$(jx step credential -s jenkins-x-bot-test-github)" | ||
export JENKINS_CREDS_PSW="$(jx step credential -s test-jenkins-user)" | ||
|
||
# fix broken `BUILD_NUMBER` env var | ||
export BUILD_NUMBER="$BUILD_ID" | ||
|
||
|
@@ -37,11 +34,11 @@ git config --global --add user.email [email protected] | |
echo "running the BDD tests with JX_HOME = $JX_HOME" | ||
|
||
# setup jx boot parameters | ||
export JX_VALUE_ADMINUSER_PASSWORD="$JENKINS_CREDS_PSW" | ||
export JX_VALUE_ADMINUSER_PASSWORD="$JENKINS_PASSWORD" | ||
export JX_VALUE_PIPELINEUSER_USERNAME="$GH_USERNAME" | ||
export JX_VALUE_PIPELINEUSER_EMAIL="$GH_EMAIL" | ||
export JX_VALUE_PIPELINEUSER_TOKEN="$GH_CREDS_PSW" | ||
export JX_VALUE_PROW_HMACTOKEN="$GH_CREDS_PSW" | ||
export JX_VALUE_PIPELINEUSER_TOKEN="$GH_ACCESS_TOKEN" | ||
export JX_VALUE_PROW_HMACTOKEN="$GH_ACCESS_TOKEN" | ||
|
||
# TODO temporary hack until the batch mode in jx is fixed... | ||
export JX_BATCH_MODE="true" | ||
|
@@ -79,8 +76,8 @@ jx step bdd \ | |
--git-provider=github \ | ||
--git-username $GH_USERNAME \ | ||
--git-owner $GH_OWNER \ | ||
--git-api-token $GH_CREDS_PSW \ | ||
--default-admin-password $JENKINS_CREDS_PSW \ | ||
--git-api-token $GH_ACCESS_TOKEN \ | ||
--default-admin-password $JENKINS_PASSWORD \ | ||
--no-delete-app \ | ||
--no-delete-repo \ | ||
--tests install \ | ||
|
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