DO-130/pipeline_doxygen (#5)
[DO-130] Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/5
This commit is contained in:
@@ -31,25 +31,25 @@ podTemplate(workspaceVolume: hostPathWorkspaceVolume(hostPath: "/data"),
|
||||
- name: harbor-registry-secret
|
||||
'''
|
||||
) {
|
||||
node(POD_LABEL) {
|
||||
stage('Get repository') {
|
||||
def git = new Git(this, "$env.JENKINS_GIT_CREDENTIALS_SSH")
|
||||
|
||||
git.clone([urlRepo: "$env.JENKINS_GIT_REPOSITORY_SSH_URL/$params.PROJECT_NAME",
|
||||
branch: "$params.BRANCH_NAME"])
|
||||
}
|
||||
node(POD_LABEL) {
|
||||
stage('Get repository') {
|
||||
def git = new Git(this, "$env.JENKINS_GIT_CREDENTIALS_SSH")
|
||||
|
||||
stage('Run job dsl') {
|
||||
jobDsl(
|
||||
targets: 'jobs-dsl/folders/*.groovy\n' +
|
||||
'jobs-dsl/jobs/**/*.groovy\n' +
|
||||
'jobs-dsl/views/**/*.groovy',
|
||||
failOnSeedCollision: true,
|
||||
lookupStrategy: 'JENKINS_ROOT',
|
||||
removedJobAction: 'IGNORE',
|
||||
removedViewAction: 'IGNORE',
|
||||
removedConfigFilesAction: 'IGNORE'
|
||||
)
|
||||
}
|
||||
}
|
||||
git.clone([urlRepo: "$env.JENKINS_GIT_REPOSITORY_SSH_URL/$params.PROJECT_NAME",
|
||||
branch: "$params.BRANCH_NAME"])
|
||||
}
|
||||
|
||||
stage('Run job dsl') {
|
||||
jobDsl(
|
||||
targets: 'jobs-dsl/folders/*.groovy\n' +
|
||||
'jobs-dsl/jobs/**/*.groovy\n' +
|
||||
'jobs-dsl/views/**/*.groovy',
|
||||
failOnSeedCollision: true,
|
||||
lookupStrategy: 'JENKINS_ROOT',
|
||||
removedJobAction: 'IGNORE',
|
||||
removedViewAction: 'IGNORE',
|
||||
removedConfigFilesAction: 'IGNORE'
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user