Skip to content

Commit

Permalink
Add backward compatibility method to build
Browse files Browse the repository at this point in the history
  • Loading branch information
robinshine committed Mar 1, 2023
1 parent 2c8e03c commit 94a1037
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server-core/src/main/java/io/onedev/server/model/Build.java
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,11 @@ public JobAuthorizationContext getJobAuthorizationContext() {
return jobAuthorizationContext;
}

// For backward compatibility
public JobAuthorizationContext getJobSecretAuthorizationContext() {
return getJobAuthorizationContext();
}

public Collection<String> getSecretValuesToMask() {
Collection<String> secretValuesToMask = new HashSet<>();
for (JobSecret secret: getProject().getHierarchyJobSecrets())
Expand Down

0 comments on commit 94a1037

Please sign in to comment.