DO-95/omp_from_nextCloud_to_nexus (#3)
add sync both NextCloud and Nexus Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/3 Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Co-committed-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
This commit is contained in:
committed by
Aleksandr Vodyanov
parent
5dcf1cd539
commit
7eeaa65b16
4
jobs-dsl/folders/omp.groovy
Normal file
4
jobs-dsl/folders/omp.groovy
Normal file
@@ -0,0 +1,4 @@
|
||||
folder('OMP') {
|
||||
displayName('OMP')
|
||||
description('Folder contains jobs for work with OMP NextCloud storage')
|
||||
}
|
||||
32
jobs-dsl/jobs/OMP/nextcloud_sync.groovy
Normal file
32
jobs-dsl/jobs/OMP/nextcloud_sync.groovy
Normal file
@@ -0,0 +1,32 @@
|
||||
pipelineJob('OMP/nextcloud-sync') {
|
||||
logRotator {
|
||||
numToKeep(10)
|
||||
artifactNumToKeep(10)
|
||||
}
|
||||
|
||||
properties {
|
||||
disableConcurrentBuilds()
|
||||
pipelineTriggers {
|
||||
triggers {
|
||||
cron {
|
||||
spec('H 9 * * *')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
definition {
|
||||
cpsScm {
|
||||
scm {
|
||||
git {
|
||||
remote {
|
||||
url("${JENKINS_GIT_REPOSITORY_URL}/devops/jenkins-pipelines.git")
|
||||
credentials("${JENKINS_GIT_CREDENTIALS_HTTP}")
|
||||
}
|
||||
branch('master')
|
||||
}
|
||||
}
|
||||
scriptPath('pipelines/OMP/nextcloud_sync.groovy')
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user