1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

use default image / workspace

This commit is contained in:
Christopher Fenner 2018-06-27 09:52:32 +02:00 committed by GitHub
parent 6cb7adac59
commit 267f5f6936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,8 +41,6 @@ class SnykExecuteTest extends BasePiperTest {
nullScript.commonPipelineEnvironment.configuration = [
steps: [
snykExecute: [
dockerImage: 'any/image',
dockerWorkspace: '/home/june',
snykCredentialsId: 'myPassword'
]
]
@ -89,8 +87,8 @@ class SnykExecuteTest extends BasePiperTest {
)
assertThat(withCredentialsParameters.credentialsId, is('myPassword'))
assertThat(jder.dockerParams, hasEntry('dockerImage', 'any/image'))
assertThat(jder.dockerParams, hasEntry('dockerWorkspace', '/home/june'))
assertThat(jder.dockerParams, hasEntry('dockerImage', 'node:8.11.2-stretch'))
assertThat(jder.dockerParams, hasEntry('dockerWorkspace', '/home/node'))
assertThat(jder.dockerParams.stashContent, hasItem('buildDescriptor'))
assertThat(jder.dockerParams.stashContent, hasItem('opensourceConfiguration'))
}