Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sha2 in getArtifacts & getDependencies #615

Merged
merged 2 commits into from
Jan 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 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 @@ -67,6 +74,7 @@ public String toString() {
return "{localPath='" + localPath + "\', " +
"remotePath='" + remotePath + "\', " +
Or-Geva marked this conversation as resolved.
Show resolved Hide resolved
"md5=" + md5 + ", " +
"sha256=" + sha256 + ", " +
"sha1=" + sha1 + "}";
}
}