Add test jenkinsfile
This commit is contained in:
parent
794bb67cba
commit
cfb6f4c125
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -1,3 +1,6 @@
|
|||||||
|
#!/usr/bin/env groovy
|
||||||
|
// see https://jenkins.io/doc/book/pipeline/syntax/
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { docker { image 'maven:3.6.3' } }
|
agent { docker { image 'maven:3.6.3' } }
|
||||||
tools {
|
tools {
|
||||||
|
22
seedjob.groovy
Normal file
22
seedjob.groovy
Normal 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")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user