File tree 2 files changed +42
-14
lines changed
2 files changed +42
-14
lines changed Original file line number Diff line number Diff line change @@ -765,8 +765,29 @@ ${content}`;
765
765
headSHA,
766
766
} ) ;
767
767
768
+ logger . withInfo (
769
+ `Successfully fetched file contents. File size: ${ fileContents . length } bytes` ,
770
+ integrationName ,
771
+ CI_COMMIT_SHA ,
772
+ "getAssetName"
773
+ ) ;
774
+
768
775
if ( fileContents ) {
776
+ logger . withInfo (
777
+ "Starting regex matching" ,
778
+ integrationName ,
779
+ CI_COMMIT_SHA ,
780
+ "getAssetName"
781
+ ) ;
769
782
var matches = regExp . exec ( fileContents ) ;
783
+
784
+ logger . withInfo (
785
+ "Successfully executed regex matching" ,
786
+ integrationName ,
787
+ CI_COMMIT_SHA ,
788
+ "getAssetName"
789
+ ) ;
790
+
770
791
if ( matches ) {
771
792
logger . withInfo (
772
793
`Found a match: ${ matches [ 1 ] . trim ( ) } ` ,
@@ -813,13 +834,6 @@ ${content}`;
813
834
) ;
814
835
const buff = Buffer . from ( content , "base64" ) ;
815
836
816
- logger . withInfo (
817
- "Successfully fetched file contents" ,
818
- integrationName ,
819
- CI_COMMIT_SHA ,
820
- "getFileContents"
821
- ) ;
822
-
823
837
return buff . toString ( "utf8" ) ;
824
838
} catch ( error ) {
825
839
logger . withError (
Original file line number Diff line number Diff line change @@ -34789,8 +34789,29 @@ ${content}`;
34789
34789
headSHA,
34790
34790
});
34791
34791
34792
+ logger_logger.withInfo(
34793
+ `Successfully fetched file contents. File size: ${fileContents.length} bytes`,
34794
+ gitlab_integration_integrationName,
34795
+ CI_COMMIT_SHA,
34796
+ "getAssetName"
34797
+ );
34798
+
34792
34799
if (fileContents) {
34800
+ logger_logger.withInfo(
34801
+ "Starting regex matching",
34802
+ gitlab_integration_integrationName,
34803
+ CI_COMMIT_SHA,
34804
+ "getAssetName"
34805
+ );
34793
34806
var matches = regExp.exec(fileContents);
34807
+
34808
+ logger_logger.withInfo(
34809
+ "Successfully executed regex matching",
34810
+ gitlab_integration_integrationName,
34811
+ CI_COMMIT_SHA,
34812
+ "getAssetName"
34813
+ );
34814
+
34794
34815
if (matches) {
34795
34816
logger_logger.withInfo(
34796
34817
`Found a match: ${matches[1].trim()}`,
@@ -34837,13 +34858,6 @@ ${content}`;
34837
34858
);
34838
34859
const buff = Buffer.from(content, "base64");
34839
34860
34840
- logger_logger.withInfo(
34841
- "Successfully fetched file contents",
34842
- gitlab_integration_integrationName,
34843
- CI_COMMIT_SHA,
34844
- "getFileContents"
34845
- );
34846
-
34847
34861
return buff.toString("utf8");
34848
34862
} catch (error) {
34849
34863
logger_logger.withError(
You can’t perform that action at this time.
0 commit comments