createOrReplaceArtifactsDir ) from infrastructure.utilities import logger as log from infrastructure.utilities import s3 from infrastructure.utilities.env import addNupicCoreToEnv from infrastructure.utilities.exceptions import ( CommandFailedError, NupicBuildFailed, PipelineError ) from infrastructure.utilities.path import changeToWorkingDir from infrastructure.utilities.cli import runWithOutput SCRIPTS_DIR = os.path.join(YOMP.getGitRootFolder(), "nupic-pipeline", "scripts") ARTIFACTS_DIR = createOrReplaceArtifactsDir() DOXYFILE = "docs/Doxyfile" INIT_FILE = "nupic/__init__.py" VERSION_FILE = "VERSION" g_config = yaml.load( resource_stream(__name__, "../../../conf/nupic/config.yaml")) def fetchNuPIC(env, buildWorkspace, nupicRemote, nupicBranch, nupicSha, logger): """ This method clones NuPIC repo if it is not present and checks out to required nupicBranch
import yaml from infrastructure.utilities import YOMP from infrastructure.utilities.jenkins import (createOrReplaceResultsDir, createOrReplaceArtifactsDir) from infrastructure.utilities import logger as log from infrastructure.utilities import s3 from infrastructure.utilities.env import addNupicCoreToEnv from infrastructure.utilities.exceptions import (CommandFailedError, NupicBuildFailed, PipelineError) from infrastructure.utilities.path import changeToWorkingDir from infrastructure.utilities.cli import runWithOutput SCRIPTS_DIR = os.path.join(YOMP.getGitRootFolder(), "nupic-pipeline", "scripts") ARTIFACTS_DIR = createOrReplaceArtifactsDir() DOXYFILE = "docs/Doxyfile" INIT_FILE = "nupic/__init__.py" VERSION_FILE = "VERSION" g_config = yaml.load( resource_stream(__name__, "../../../conf/nupic/config.yaml")) def fetchNuPIC(env, buildWorkspace, nupicRemote, nupicBranch, nupicSha, logger): """ This method clones NuPIC repo if it is not present