os.environ['WORKSPACE']=cmd_folder # needed by kernel_persistence
import kernel_persistence
+ PB_SUITE = os.environ.get('PB_SUITE')
+
GIT_BRANCH_NAME = (
os.environ.get('GIT_BRANCH_NAME') or options.git_branch_name
)
if not GIT_BRANCH_NAME:
# try to get it from persistence
try:
- PB_SUITE = os.environ.get('PB_SUITE')
kernel_revision_obj = kernel_persistence.get_last_kernel_revision_obj(PB_SUITE)
- GIT_BRANCH_NAME=kernel_revision_obj.branch
+ GIT_BRANCH_NAME=kernel_revision_obj.branch_name
except:
logger.error('No git branch name given and no persistence for %s neither' % PB_SUITE)
exit(ERROR)