Skip to content

Commit

Permalink
Add initial Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelnano committed Nov 30, 2023
1 parent 791214e commit 0139276
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
pipeline {
// Run on an agent where we want to use Go
agent any

// Ensure the desired Go version is installed for all stages,
// using the name defined in the Global Tool Configuration
tools { go '1.20' }

stages {
stage('BuildAndTest') {
matrix {

stages {
stage('Test') {

steps {
// Output will be something like "go version go1.19 darwin/arm64"
sh 'go version'
sh 'cp /opt/terraform-provider-xenorchestra/testdata/images/alpine-virt-3.17.0-x86_64.iso xoa/testdata/alpine-virt-3.17.0-x86_64.iso'
sh 'make ci'
}
}
}
}
}
}

0 comments on commit 0139276

Please sign in to comment.