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

add Pipeline.info()

parent 0a3a8fe0
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -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):