Skip to content
Snippets Groups Projects
Commit 4129c9f4 authored by Tucker Siegel's avatar Tucker Siegel
Browse files

testing

parent c156b8d0
No related branches found
No related tags found
No related merge requests found
@Library('shared-library') _
def config = [name: 'Newman', dayOfWeek: 'Friday']
pipeline { pipeline {
agent any agent any
tools { tools {
...@@ -44,6 +48,12 @@ pipeline { ...@@ -44,6 +48,12 @@ pipeline {
""" """
} }
} }
stage('test library') {
steps {
test(config)
}
}
} }
post { post {
always { always {
......
...@@ -30,6 +30,8 @@ pipeline { ...@@ -30,6 +30,8 @@ pipeline {
steps { steps {
sh ''' sh '''
docker image prune --filter "until=168h" --filter "label!=latest" || true docker image prune --filter "until=168h" --filter "label!=latest" || true
'''
sh '''
docker rmi $(docker images | grep 'dev-test') || true docker rmi $(docker images | grep 'dev-test') || true
''' '''
} }
......
def call(Map config = [:]) {
sh "echo Hello ${config.name}. Today is ${config.dayOfWeek}."
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment