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:
parent
7dc2c86758
commit
fac4af231f
@ -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
|
||||
|
@ -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']]
|
||||
|
Loading…
x
Reference in New Issue
Block a user