#!/bin/env groovy // This script is used internally by Enea for automated tests on Linux builds MANIFEST_REPOSITORY = scm.getUserRemoteConfigs()[0].getUrl() IS_CI = false def git_repo = MANIFEST_REPOSITORY.trim().split('/')[-1] def git_repo_name = git_repo.replace('.git','') def profile_name = git_repo_name.split('-') def result = ''; for (i = 1; i < profile_name.length; i++) { if (i != 1) { result += '-' + profile_name[i] } else { result += profile_name[i] } } PROFILE = result BRANCH = env.BRANCH_NAME fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') { fileLoader.load('freeze_manifest.groovy'); } fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') { fileLoader.load('eltf_pipeline.groovy'); }