Skip to content

Commit

Permalink
Merge pull request #13 from stakater/remove-secrets
Browse files Browse the repository at this point in the history
remove getEnvValue method for secret resources
  • Loading branch information
kahootali authored May 24, 2019
2 parents d2fd2e7 + 871b927 commit 78c86ab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions vars/goBuildAndRelease.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def call(body) {

stage('Chart: Upload') {
echo ("Uploading chart")
String cmUsername = common.getEnvValue('CHARTMUSEUM_USERNAME')
String cmPassword = common.getEnvValue('CHARTMUSEUM_PASSWORD')
String cmUsername = "${env.CHARTMUSEUM_USERNAME}"
String cmPassword = "${env.CHARTMUSEUM_PASSWORD}"
String publicChartRepositoryURL = config.publicChartRepositoryURL
String publicChartGitURL = config.publicChartGitURL

Expand Down
4 changes: 2 additions & 2 deletions vars/goBuildViaGoReleaser.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ def call(body) {

stage('Chart: Upload') {
echo "Executing chart upload step"
String cmUsername = common.getEnvValue('CHARTMUSEUM_USERNAME')
String cmPassword = common.getEnvValue('CHARTMUSEUM_PASSWORD')
String cmUsername = "${env.CHARTMUSEUM_USERNAME}"
String cmPassword = "${env.CHARTMUSEUM_PASSWORD}"
String publicChartRepositoryURL = config.publicChartRepositoryURL
String publicChartGitURL = config.publicChartGitURL

Expand Down
4 changes: 2 additions & 2 deletions vars/prepareAndUploadChart.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def call(body) {

if(utils.isCD()) {
stage("Upload Chart: ${chartName}") {
String cmUsername = common.getEnvValue('CHARTMUSEUM_USERNAME')
String cmPassword = common.getEnvValue('CHARTMUSEUM_PASSWORD')
String cmUsername = "${env.CHARTMUSEUM_USERNAME}"
String cmPassword = "${env.CHARTMUSEUM_PASSWORD}"
String publicChartRepositoryURL = config.publicChartRepositoryURL
String publicChartGitURL = config.publicChartGitURL

Expand Down
4 changes: 2 additions & 2 deletions vars/releaseNodeApplication.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def call(body) {
templates.generateManifests(chartDir, repoName.toLowerCase(), manifestsDir)
chartPackageName = helm.package(chartDir, repoName.toLowerCase(),helmVersion)

String cmUsername = common.getEnvValue('CHARTMUSEUM_USERNAME')
String cmPassword = common.getEnvValue('CHARTMUSEUM_PASSWORD')
String cmUsername = "${env.CHARTMUSEUM_USERNAME}"
String cmPassword = "${env.CHARTMUSEUM_PASSWORD}"
chartManager.uploadToChartMuseum(chartDir, repoName.toLowerCase(), chartPackageName, cmUsername, cmPassword, chartRepositoryURL)
}
stage('Run Synthetic/E2E Tests') {
Expand Down

0 comments on commit 78c86ab

Please sign in to comment.