src/Psalm/Internal/ExecutionEnvironment/BuildInfoCollector.php
protected function fillJenkins() : self
    {
        if (isset($this->env['JENKINS_URL']) && isset($this->env['BUILD_NUMBER'])) {
            $this->readEnv['CI_BUILD_NUMBER'] = $this->env['BUILD_NUMBER'];
            $this->readEnv['CI_BUILD_URL'] = $this->env['JENKINS_URL'];
            $this->env['CI_NAME'] = 'jenkins';

            // backup
            $this->readEnv['BUILD_NUMBER'] = $this->env['BUILD_NUMBER'];
            $this->readEnv['JENKINS_URL'] = $this->env['JENKINS_URL'];
            $this->readEnv['CI_NAME'] = $this->env['CI_NAME'];
        }

        return $this;
    }
protected function fillJenkins() : self
    {
        if (isset($this->env['JENKINS_URL']) && isset($this->env['BUILD_NUMBER'])) {
            $this->readEnv['CI_BUILD_NUMBER'] = $this->env['BUILD_NUMBER'];
            $this->readEnv['CI_BUILD_URL'] = $this->env['JENKINS_URL'];
            $this->env['CI_NAME'] = 'jenkins';

            // backup
            $this->readEnv['BUILD_NUMBER'] = $this->env['BUILD_NUMBER'];
            $this->readEnv['JENKINS_URL'] = $this->env['JENKINS_URL'];
            $this->readEnv['CI_NAME'] = $this->env['CI_NAME'];
        }

        return $this;
    }
protected function fillJenkins ( ) : self { if ( isset ( $ this -> env [ 'JENKINS_URL' ] ) && isset ( $ this -> env [ 'BUILD_NUMBER' ] ) ) { $ this -> readEnv [ 'CI_BUILD_NUMBER' ] = $ this -> env [ 'BUILD_NUMBER' ] ; $ this -> readEnv [ 'CI_BUILD_URL' ] = $ this -> env [ 'JENKINS_URL' ] ; $ this -> env [ 'CI_NAME' ] = 'jenkins' ; // backup $ this -> readEnv [ 'BUILD_NUMBER' ] = $ this -> env [ 'BUILD_NUMBER' ] ; $ this -> readEnv [ 'JENKINS_URL' ] = $ this -> env [ 'JENKINS_URL' ] ; $ this -> readEnv [ 'CI_NAME' ] = $ this -> env [ 'CI_NAME' ] ; } return $ this ; }
Fill Jenkins environment variables.

"JENKINS_URL", "BUILD_NUMBER" must be set.

@return $this
Fill Jenkins environment variables .