-def Get_MDG(project) {
- // split the project.
- def values = project.split('/')
- if ( values.size() > 1 ) {
- return values[1]
- }
- // no prefix, likely just the project name then
- return project
-}
-
-def project_checkout() {
- // checkout the project
- git url: "https://osm.etsi.org/gerrit/${GERRIT_PROJECT}"
-
- sh "git fetch origin ${GERRIT_REFSPEC}"
- if (GERRIT_PATCHSET_REVISION.size() > 0 ) {
- sh "git checkout -f ${GERRIT_PATCHSET_REVISION}"
- }
-}
+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'),
+ ])
+])