Add an example Jenkinsfile which I can load into Jenkins

This commit is contained in:
R. Tyler Croy 2018-01-03 19:29:29 -08:00
parent 8d97d577ce
commit 1fd98b1fe6
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 19 additions and 0 deletions

View File

@ -1,5 +1,6 @@
check: vendor/bats
./vendor/bats/bin/bats $(wildcard t/*.bats) $(wildcard t/**/*.bats)
./resources/io/codevalet/externalartifacts/upload-file-azure.sh README.adoc
vendor/bats:
mkdir -p vendor

18
example/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,18 @@
pipeline {
agent any
environment {
AZURE_STORAGE_ACCOUNT = 'codevaletartifacts'
AZURE_CONTAINER_NAME = 'jenkins'
AZURE_ACCESS_KEY = credentials('azure-access-key')
}
stages {
stage('Test') {
steps {
sh 'date > timestamp.txt'
archiveArtifacts 'timestamp.txt'
}
}
}
}