<commit_before>import com.github.aroq.druflow.commands.AutoMergeJobDSLCreator
import com.github.aroq.groovycommon.Common
import com.github.aroq.groovycommon.Config

config = Config.instance.config

Config.instance.addParams(System.properties)

// Determine current environment.
try {
    WORKSPACE
    config.environment = 'jenkins'
    config.build = build
} catch (MissingPropertyException mpe) {
    config.environment = 'local'
}

//if (config.environment == 'local') {
//    config.gitlabAddress = System.getProperty('gitlabAddress')
//    config.projectID = System.getProperty('projectID')
//    config.privateToken = System.getProperty('privateToken')
//}
//else {
//    config.gitlabAddress = gitlabAddress
//    config.projectID = projectID
//    config.privateToken = privateToken
//}

config.rootDir = Common.instance.rootDir()

def configFile = new File(config.rootDir + '/config/config.groovy')
Config.instance.addParams(ConfigSlurper.newInstance(config.environment).parse(configFile.text))

(new AutoMergeJobDSLCreator(componentName: 'automerge', scriptObject: this)).execute()
<commit_msg>Added build config<commit_after>import com.github.aroq.druflow.commands.AutoMergeJobDSLCreator
import com.github.aroq.groovycommon.Common
import com.github.aroq.groovycommon.Config

config = Config.instance.config

Config.instance.addParams(System.properties)

// Determine current environment.
try {
    WORKSPACE
    config.environment = 'jenkins'
    config.build = build
} catch (MissingPropertyException mpe) {
    config.environment = 'local'
}

//if (config.environment == 'local') {
//    config.gitlabAddress = System.getProperty('gitlabAddress')
//    config.projectID = System.getProperty('projectID')
//    config.privateToken = System.getProperty('privateToken')
//}
//else {
//    config.gitlabAddress = gitlabAddress
//    config.projectID = projectID
//    config.privateToken = privateToken
//}

config.rootDir = Common.instance.rootDir()
println config.rootDir

def configFile = new File(config.rootDir + '/config/config.groovy')
Config.instance.addParams(ConfigSlurper.newInstance(config.environment).parse(configFile.text))

(new AutoMergeJobDSLCreator(componentName: 'automerge', scriptObject: this)).execute()

{'fraction_non_alphanumeric': 0.12656529516994633, 'fraction_numerical': 0.0, 'mean_word_length': 4.795336787564767, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '730374', 'n_tokens_mistral': 667, 'n_tokens_neox': 666, 'n_words': 108}