1
0

Add test jenkinsfile

This commit is contained in:
Andrea Cavalli 2020-10-03 02:11:40 +02:00
parent 794bb67cba
commit cfb6f4c125
2 changed files with 25 additions and 0 deletions

3
Jenkinsfile vendored
View File

@ -1,3 +1,6 @@
#!/usr/bin/env groovy
// see https://jenkins.io/doc/book/pipeline/syntax/
pipeline {
agent { docker { image 'maven:3.6.3' } }
tools {

22
seedjob.groovy Normal file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env groovy
// see https://jenkinsci.github.io/job-dsl-plugin/ and https://jenkinsci.github.io/job-dsl-plugin/#path/pipelineJob
pipelineJob("my-maven-lib") {
displayName("My Maven Lib")
definition {
cpsScm {
scm {
git {
remote {
url("...")
branch("*/master")
}
extensions {
localBranch("master")
}
}
}
scriptPath("Jenkinsfile")
}
}
}