Skip to content

Commit

Permalink
Add sha2 in getArtifacts & getDependencies (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva authored Jan 20, 2022
1 parent 6efa414 commit 04d43f4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/org/jfrog/hudson/pipeline/types/File.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class File implements Serializable {
private String remotePath;
private String md5;
private String sha1;
private String sha256;

public File() {
}
Expand All @@ -23,6 +24,7 @@ public File(BaseBuildFileBean baseBuildFileBean) {
this.remotePath = baseBuildFileBean.getRemotePath();
this.md5 = baseBuildFileBean.getMd5();
this.sha1 = baseBuildFileBean.getSha1();
this.sha256 = baseBuildFileBean.getSha256();
}

@Whitelisted
Expand All @@ -45,6 +47,11 @@ public String getSha1() {
return sha1;
}

@Whitelisted
public String getSha256() {
return sha256;
}

@Override
public int hashCode() {
return Objects.hash(localPath, remotePath);
Expand All @@ -64,9 +71,10 @@ public boolean equals(Object other) {

@Override
public String toString() {
return "{localPath='" + localPath + "\', " +
"remotePath='" + remotePath + "\', " +
return "{localPath='" + localPath + "', " +
"remotePath='" + remotePath + "', " +
"md5=" + md5 + ", " +
"sha256=" + sha256 + ", " +
"sha1=" + sha1 + "}";
}
}

0 comments on commit 04d43f4

Please sign in to comment.