X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=Jenkinsfile;h=260f644e5e7d0634116d5f74670387e99b86b371;hb=c2f4bb565b101120cb0e14004540b75f65b9eb91;hp=92a504609019ad1f12b504c86e21432cacab577f;hpb=30b8eb7808b49a8eb51b34225c2fd9e834d47df8;p=test.git diff --git a/Jenkinsfile b/Jenkinsfile index 92a5046..260f644 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,30 @@ -pipeline { - agent any - stages { - stage("test") { - } +properties([ + parameters([ + string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'), + string(defaultValue: 'test', description: '', name: 'GERRIT_PROJECT'), + string(defaultValue: env.GERRIT_REFSPEC, description: '', name: 'GERRIT_REFSPEC'), + string(defaultValue: env.GERRIT_PATCHSET_REVISION, description: '', name: 'GERRIT_PATCHSET_REVISION'), + string(defaultValue: 'https://osm.etsi.org/gerrit', description: '', name: 'PROJECT_URL_PREFIX'), + booleanParam(defaultValue: true, description: '', name: 'BUILD_SYSTEM'), + ]) +]) + +def devops_checkout() { + dir('devops') { + git url: "${PROJECT_URL_PREFIX}/osm/devops" } } + +node { + checkout scm + devops_checkout() + + ci_stage_2 = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy" + ci_stage_2.ci_pipeline( 'test', + params.PROJECT_URL_PREFIX, + params.GERRIT_PROJECT, + params.GERRIT_BRANCH, + params.GERRIT_REFSPEC, + params.GERRIT_PATCHSET_REVISION, + params.BUILD_SYSTEM) +}