From 4129c9f4ed3a8ccadcb6151255dc8b30c22d3612 Mon Sep 17 00:00:00 2001 From: Tucker Siegel <tgsiegel@umd.edu> Date: Fri, 12 Nov 2021 09:55:55 -0800 Subject: [PATCH] testing --- dawn-user/staging | 10 ++++++++++ deploy/staging | 2 ++ test.groovy | 5 +++++ 3 files changed, 17 insertions(+) create mode 100644 test.groovy diff --git a/dawn-user/staging b/dawn-user/staging index 4dd1f46..d286bb5 100644 --- a/dawn-user/staging +++ b/dawn-user/staging @@ -1,3 +1,7 @@ +@Library('shared-library') _ + +def config = [name: 'Newman', dayOfWeek: 'Friday'] + pipeline { agent any tools { @@ -44,6 +48,12 @@ pipeline { """ } } + + stage('test library') { + steps { + test(config) + } + } } post { always { diff --git a/deploy/staging b/deploy/staging index 2b2dd15..f2cb814 100644 --- a/deploy/staging +++ b/deploy/staging @@ -30,6 +30,8 @@ pipeline { steps { sh ''' docker image prune --filter "until=168h" --filter "label!=latest" || true + ''' + sh ''' docker rmi $(docker images | grep 'dev-test') || true ''' } diff --git a/test.groovy b/test.groovy new file mode 100644 index 0000000..bd92cc2 --- /dev/null +++ b/test.groovy @@ -0,0 +1,5 @@ +def call(Map config = [:]) { + + sh "echo Hello ${config.name}. Today is ${config.dayOfWeek}." + +} \ No newline at end of file -- GitLab