Commit 072867bf authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add Pipeline.info()

parent 0a3a8fe0
Pipeline #11643 passed with stage
......@@ -257,10 +257,12 @@ class Pipeline:
else:
raise ValueError("CCDS client not initialized!")
@property
def pipeline_build(self):
"""{PIPELINE_ID}-{BUILD}"""
return f"{self.pipeline_id}-{self.build}"
def info(self):
"""Return pipeline information."""
self.logger.info(f"PIPELINE_ID={self.pipeline_id}")
self.logger.info(f"BUILD={self.build}")
self.logger.info(f"CREATED={self.created}")
self.logger.info(f"VERBOSE={self.verbose}")
class ModuleResult(NamedTuple):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment