def init()

in src/com/epam/edp/Job.groovy [78:117]


    def init() {
        this.crApiVersion = getParameterValue("GIT_SERVER_CR_VERSION")
        this.crApiGroup = "${crApiVersion}.${EDP_EPAM_COM_POSTFIX}"
        this.deployTemplatesDirectory = getParameterValue("DEPLOY_TEMPLATES_DIRECTORY", "deploy-templates")
        this.buildUrl = getParameterValue("BUILD_URL")
        this.jenkinsUrl = getParameterValue("JENKINS_URL")
        this.edpName = platform.getJsonPathValue("cm", "edp-config", ".data.edp_name")
        this.adminConsoleUrl = platform.getJsonPathValue("edpcomponent", "edp-admin-console", ".spec.url")
        this.buildUser = getBuildUser()
        this.triggerJobName = getParameterValue("TRIGGER_JOB_NAME")
        this.triggerJobWait = getParameterValue("TRIGGER_JOB_WAIT", false)
        this.triggerJobPropogate = getParameterValue("TRIGGER_JOB_PROPOGATE", false)
        this.ciProject = getParameterValue("CI_NAMESPACE")
        setTriggerJobParameter()

        def stagesConfig = getParameterValue("STAGES")
        if (!stagesConfig?.trim())
            script.error("[JENKINS][ERROR] Parameter STAGES is mandatory to be specified, please check configuration of job")
        try {
            this.stages = new JsonSlurperClassic().parseText(stagesConfig)
        }
        catch (Exception ex) {
            script.error("[JENKINS][ERROR] Couldn't parse stages configuration from parameter STAGE - not valid JSON formate.\r\nException - ${ex}")
        }

        switch (type) {
            case JobType.CREATERELEASE.value:
                if (!getParameterValue("RELEASE_NAME")) {
                    script.error("[JENKINS][ERROR] Parameter RELEASE_NAME is mandatory to be specified, please check configuration of job")
                }
                if (!getParameterValue("DEFAULT_BRANCH")) {
                    script.error("[JENKINS][ERROR] Parameter DEFAULT_BRANCH is mandatory to be specified, please check configuration of job")
                }
                this.releaseName = getParameterValue("RELEASE_NAME").toLowerCase()
                def defaultBranch = getParameterValue("DEFAULT_BRANCH")
                this.releaseFromCommitId = getParameterValue("COMMIT_ID", "origin/" + defaultBranch)
            case JobType.DEPLOY.value:
                this.maxOfParallelDeployApps = getParameterValue("MAX_PARALLEL_APPS", 5)
        }
    }