You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-09-16 09:26:22 +02:00
use v6 version of ppiper/cf-cli consistently for all go steps (#2569)
This commit is contained in:
@@ -234,7 +234,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Name: "cf", Image: "ppiper/cf-cli"},
|
{Name: "cf", Image: "ppiper/cf-cli:6"},
|
||||||
},
|
},
|
||||||
Outputs: config.StepOutputs{
|
Outputs: config.StepOutputs{
|
||||||
Resources: []config.StepResources{
|
Resources: []config.StepResources{
|
||||||
|
@@ -221,7 +221,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Name: "cf", Image: "ppiper/cf-cli"},
|
{Name: "cf", Image: "ppiper/cf-cli:6"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@@ -221,7 +221,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Name: "cf", Image: "ppiper/cf-cli"},
|
{Name: "cf", Image: "ppiper/cf-cli:6"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@@ -291,7 +291,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Name: "cf", Image: "ppiper/cf-cli:v5"},
|
{Name: "cf", Image: "ppiper/cf-cli:6"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@@ -221,7 +221,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Name: "cf", Image: "ppiper/cf-cli"},
|
{Name: "cf", Image: "ppiper/cf-cli:6"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@@ -214,7 +214,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Name: "cf", Image: "ppiper/cf-cli"},
|
{Name: "cf", Image: "ppiper/cf-cli:6"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@@ -203,7 +203,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Name: "cf", Image: "ppiper/cf-cli"},
|
{Name: "cf", Image: "ppiper/cf-cli:6"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@@ -267,7 +267,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Name: "cf", Image: "ppiper/cf-cli:v5"},
|
{Name: "cf", Image: "ppiper/cf-cli:6"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@@ -161,7 +161,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Name: "cf", Image: "ppiper/cf-cli"},
|
{Name: "cf", Image: "ppiper/cf-cli:6"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@@ -192,7 +192,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Name: "cf", Image: "ppiper/cf-cli", WorkingDir: "/home/piper"},
|
{Name: "cf", Image: "ppiper/cf-cli:6", WorkingDir: "/home/piper"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@@ -161,7 +161,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Name: "cf", Image: "ppiper/cf-cli"},
|
{Name: "cf", Image: "ppiper/cf-cli:6"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@@ -473,7 +473,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Name: "cfDeploy", Image: "ppiper/cf-cli"},
|
{Name: "cfDeploy", Image: "ppiper/cf-cli:6"},
|
||||||
},
|
},
|
||||||
Outputs: config.StepOutputs{
|
Outputs: config.StepOutputs{
|
||||||
Resources: []config.StepResources{
|
Resources: []config.StepResources{
|
||||||
|
@@ -46,7 +46,7 @@ export ON_K8S=true"
|
|||||||
```
|
```
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
dockerExecuteOnKubernetes(script: script, containerMap: ['maven:3.5-jdk-8-alpine': 'maven', 'ppiper/cf-cli': 'cfcli']){
|
dockerExecuteOnKubernetes(script: script, containerMap: ['maven:3.5-jdk-8-alpine': 'maven', 'ppiper/cf-cli:6': 'cfcli']){
|
||||||
container('maven'){
|
container('maven'){
|
||||||
sh "mvn clean install"
|
sh "mvn clean install"
|
||||||
}
|
}
|
||||||
|
@@ -211,10 +211,10 @@ steps:
|
|||||||
- 'deployDescriptor'
|
- 'deployDescriptor'
|
||||||
- 'pipelineConfigAndTests'
|
- 'pipelineConfigAndTests'
|
||||||
cf_native:
|
cf_native:
|
||||||
dockerImage: 'ppiper/cf-cli:v5'
|
dockerImage: 'ppiper/cf-cli:6'
|
||||||
dockerWorkspace: '/home/piper'
|
dockerWorkspace: '/home/piper'
|
||||||
mtaDeployPlugin:
|
mtaDeployPlugin:
|
||||||
dockerImage: 'ppiper/cf-cli:v5'
|
dockerImage: 'ppiper/cf-cli:6'
|
||||||
dockerWorkspace: '/home/piper'
|
dockerWorkspace: '/home/piper'
|
||||||
mta:
|
mta:
|
||||||
deployTool: 'mtaDeployPlugin'
|
deployTool: 'mtaDeployPlugin'
|
||||||
|
@@ -125,4 +125,4 @@ spec:
|
|||||||
- name: abap/addonDescriptor
|
- name: abap/addonDescriptor
|
||||||
containers:
|
containers:
|
||||||
- name: cf
|
- name: cf
|
||||||
image: ppiper/cf-cli
|
image: ppiper/cf-cli:6
|
||||||
|
@@ -129,4 +129,4 @@ spec:
|
|||||||
- name: cfServiceKeyName
|
- name: cfServiceKeyName
|
||||||
containers:
|
containers:
|
||||||
- name: cf
|
- name: cf
|
||||||
image: ppiper/cf-cli
|
image: ppiper/cf-cli:6
|
||||||
|
@@ -129,4 +129,4 @@ spec:
|
|||||||
- name: cfServiceKey
|
- name: cfServiceKey
|
||||||
containers:
|
containers:
|
||||||
- name: cf
|
- name: cf
|
||||||
image: ppiper/cf-cli
|
image: ppiper/cf-cli:6
|
||||||
|
@@ -196,4 +196,4 @@ spec:
|
|||||||
default: false
|
default: false
|
||||||
containers:
|
containers:
|
||||||
- name: cf
|
- name: cf
|
||||||
image: ppiper/cf-cli:v5
|
image: ppiper/cf-cli:6
|
||||||
|
@@ -128,4 +128,4 @@ spec:
|
|||||||
default: false
|
default: false
|
||||||
containers:
|
containers:
|
||||||
- name: cf
|
- name: cf
|
||||||
image: ppiper/cf-cli
|
image: ppiper/cf-cli:6
|
||||||
|
@@ -130,4 +130,4 @@ spec:
|
|||||||
default: "ATCResults.xml"
|
default: "ATCResults.xml"
|
||||||
containers:
|
containers:
|
||||||
- name: cf
|
- name: cf
|
||||||
image: ppiper/cf-cli
|
image: ppiper/cf-cli:6
|
||||||
|
@@ -196,4 +196,4 @@ spec:
|
|||||||
- name: cfManifestVariablesFiles
|
- name: cfManifestVariablesFiles
|
||||||
containers:
|
containers:
|
||||||
- name: cf
|
- name: cf
|
||||||
image: ppiper/cf-cli:v5
|
image: ppiper/cf-cli:6
|
||||||
|
@@ -115,4 +115,4 @@ spec:
|
|||||||
- name: cloudFoundry/serviceKeyConfig
|
- name: cloudFoundry/serviceKeyConfig
|
||||||
containers:
|
containers:
|
||||||
- name: cf
|
- name: cf
|
||||||
image: ppiper/cf-cli
|
image: ppiper/cf-cli:6
|
||||||
|
@@ -80,4 +80,4 @@ spec:
|
|||||||
- name: cloudFoundry/space
|
- name: cloudFoundry/space
|
||||||
containers:
|
containers:
|
||||||
- name: cf
|
- name: cf
|
||||||
image: ppiper/cf-cli
|
image: ppiper/cf-cli:6
|
||||||
|
@@ -102,5 +102,5 @@ spec:
|
|||||||
- name: cloudFoundry/cfDeleteServiceKeys
|
- name: cloudFoundry/cfDeleteServiceKeys
|
||||||
containers:
|
containers:
|
||||||
- name: cf
|
- name: cf
|
||||||
image: ppiper/cf-cli
|
image: ppiper/cf-cli:6
|
||||||
workingDir: "/home/piper"
|
workingDir: "/home/piper"
|
||||||
|
@@ -80,4 +80,4 @@ spec:
|
|||||||
- name: cloudFoundry/space
|
- name: cloudFoundry/space
|
||||||
containers:
|
containers:
|
||||||
- name: cf
|
- name: cf
|
||||||
image: ppiper/cf-cli
|
image: ppiper/cf-cli:6
|
||||||
|
@@ -370,7 +370,7 @@ spec:
|
|||||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||||
containers:
|
containers:
|
||||||
- name: cfDeploy
|
- name: cfDeploy
|
||||||
image: ppiper/cf-cli
|
image: ppiper/cf-cli:6
|
||||||
outputs:
|
outputs:
|
||||||
resources:
|
resources:
|
||||||
- name: influx
|
- name: influx
|
||||||
|
@@ -173,7 +173,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
cfManifest: 'test.yml'
|
cfManifest: 'test.yml'
|
||||||
])
|
])
|
||||||
// asserts
|
// asserts
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
@@ -225,7 +225,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
]
|
]
|
||||||
])
|
])
|
||||||
// asserts
|
// asserts
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
@@ -421,7 +421,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
cfManifest: 'test.yml'
|
cfManifest: 'test.yml'
|
||||||
])
|
])
|
||||||
|
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
|
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
@@ -449,7 +449,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
cfManifest: 'test.yml'
|
cfManifest: 'test.yml'
|
||||||
])
|
])
|
||||||
|
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
|
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
@@ -478,7 +478,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
cfManifest: 'test.yml'
|
cfManifest: 'test.yml'
|
||||||
])
|
])
|
||||||
|
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
|
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
@@ -559,7 +559,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
cfManifest: 'test.yml'
|
cfManifest: 'test.yml'
|
||||||
])
|
])
|
||||||
|
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
|
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
@@ -657,7 +657,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
mtaPath: 'target/test.mtar'
|
mtaPath: 'target/test.mtar'
|
||||||
])
|
])
|
||||||
// asserts
|
// asserts
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf deploy target/test.mtar -f')))
|
assertThat(shellRule.shell, hasItem(containsString('cf deploy target/test.mtar -f')))
|
||||||
@@ -750,7 +750,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
cfManifestVariablesFiles: ['vars.yml']
|
cfManifestVariablesFiles: ['vars.yml']
|
||||||
])
|
])
|
||||||
|
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
@@ -802,7 +802,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
])
|
])
|
||||||
|
|
||||||
// asserts
|
// asserts
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
@@ -855,7 +855,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
])
|
])
|
||||||
|
|
||||||
// asserts
|
// asserts
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
@@ -880,7 +880,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
])
|
])
|
||||||
|
|
||||||
// asserts
|
// asserts
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
@@ -925,7 +925,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
assertNotNull(testYamlData)
|
assertNotNull(testYamlData)
|
||||||
assertThat(testYamlData.get("applications").get(0).get("name"), is("testApplication"))
|
assertThat(testYamlData.get("applications").get(0).get("name"), is("testApplication"))
|
||||||
|
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
@@ -971,7 +971,7 @@ class CloudFoundryDeployTest extends BasePiperTest {
|
|||||||
assertNotNull(testYamlData)
|
assertNotNull(testYamlData)
|
||||||
assertThat(testYamlData.get("applications").get(0).get("name"), is("testApplicationFromVarsList"))
|
assertThat(testYamlData.get("applications").get(0).get("name"), is("testApplicationFromVarsList"))
|
||||||
|
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:v5'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerImage', 'ppiper/cf-cli:6'))
|
||||||
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
assertThat(dockerExecuteRule.dockerParams, hasEntry('dockerWorkspace', '/home/piper'))
|
||||||
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
assertThat(dockerExecuteRule.dockerParams.dockerEnvVars, hasEntry('STATUS_CODE', "${200}"))
|
||||||
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
assertThat(shellRule.shell, hasItem(containsString('cf login -u "test_cf" -p \'********\' -a https://api.cf.eu10.hana.ondemand.com -o "testOrg" -s "testSpace"')))
|
||||||
|
@@ -119,7 +119,7 @@ class MulticloudDeployTest extends BasePiperTest {
|
|||||||
deployType: 'blue-green',
|
deployType: 'blue-green',
|
||||||
keepOldInstance: true,
|
keepOldInstance: true,
|
||||||
cf_native: [
|
cf_native: [
|
||||||
dockerImage: 'ppiper/cf-cli',
|
dockerImage: 'ppiper/cf-cli:6',
|
||||||
dockerWorkspace: '/home/piper'
|
dockerWorkspace: '/home/piper'
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
@@ -87,7 +87,7 @@ import hudson.AbortException
|
|||||||
'containerEnvVars',
|
'containerEnvVars',
|
||||||
/**
|
/**
|
||||||
* A map of docker image to the name of the container. The pod will be created with all the images from this map and they are labelled based on the value field of each map entry.
|
* A map of docker image to the name of the container. The pod will be created with all the images from this map and they are labelled based on the value field of each map entry.
|
||||||
* Example: `['maven:3.5-jdk-8-alpine': 'mavenExecute', 'selenium/standalone-chrome': 'selenium', 'famiko/jmeter-base': 'checkJMeter', 'ppiper/cf-cli': 'cloudfoundry']`
|
* Example: `['maven:3.5-jdk-8-alpine': 'mavenExecute', 'selenium/standalone-chrome': 'selenium', 'famiko/jmeter-base': 'checkJMeter', 'ppiper/cf-cli:6': 'cloudfoundry']`
|
||||||
*/
|
*/
|
||||||
'containerMap',
|
'containerMap',
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user