1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00

fix(cfDeploy): correct stashing (#2448)

* remove stash from step yaml

* add stash to groovy code
This commit is contained in:
Christopher Fenner 2020-12-05 13:35:16 +01:00 committed by GitHub
parent 7dc2c86758
commit fac4af231f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -14,9 +14,6 @@ spec:
- name: dockerCredentialsId
description: Jenkins 'Username with password' credentials ID containing user and password to authenticate to the Docker registry.
type: jenkins
resources:
- name: deployDescriptor
type: stash
params:
- name: apiEndpoint
type: string

View File

@ -232,6 +232,7 @@ void call(Map parameters = [:]) {
.use()
if (config.useGoStep == true) {
utils.unstashAll("deployDescriptor")
List credentials = [
[type: 'usernamePassword', id: 'cfCredentialsId', env: ['PIPER_username', 'PIPER_password']],
[type: 'usernamePassword', id: 'dockerCredentialsId', env: ['PIPER_dockerUsername', 'PIPER_dockerPassword']]