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>
33 lines
757 B
Groovy
33 lines
757 B
Groovy
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')
|
|
}
|
|
}
|
|
}
|