@@ -100,7 +100,7 @@ protected String getTriggerType() {
100100 protected CauseData retrieveCauseData (PipelineHook hook ) {
101101 return causeData ()
102102 .withActionType (CauseData .ActionType .PIPELINE )
103- .withSourceProjectId (hook .getProjectId ())
103+ .withSourceProjectId (hook .getProject (). getId ())
104104 .withBranch (getTargetBranch (hook )==null ?"" :getTargetBranch (hook ))
105105 .withSourceBranch (getTargetBranch (hook )==null ?"" :getTargetBranch (hook ))
106106 .withUserName (hook .getUser ()==null ||hook .getUser ().getName ()==null ?"" :hook .getUser ().getName ())
@@ -109,7 +109,7 @@ protected CauseData retrieveCauseData(PipelineHook hook) {
109109 .withSourceRepoSshUrl (hook .getRepository ()==null ||hook .getRepository ().getGitSshUrl ()==null ?"" :hook .getRepository ().getGitSshUrl ())
110110 .withSourceRepoHttpUrl (hook .getRepository ()==null ||hook .getRepository ()==null ?"" :hook .getRepository ().getGitHttpUrl ())
111111 .withMergeRequestTitle ("" )
112- .withTargetProjectId (hook .getProjectId ())
112+ .withTargetProjectId (hook .getProject (). getId ())
113113 .withTargetBranch (getTargetBranch (hook )==null ?"" :getTargetBranch (hook ))
114114 .withTargetRepoName ("" )
115115 .withTargetNamespace ("" )
@@ -136,7 +136,7 @@ protected RevisionParameterAction createRevisionParameter(PipelineHook hook, Git
136136 @ Override
137137 protected BuildStatusUpdate retrieveBuildStatusUpdate (PipelineHook hook ) {
138138 return buildStatusUpdate ()
139- .withProjectId (hook .getProjectId ())
139+ .withProjectId (hook .getProject (). getId ())
140140 .withSha (hook .getObjectAttributes ().getSha ())
141141 .withRef (hook .getObjectAttributes ().getRef ())
142142 .build ();
0 commit comments