Skip to content
Permalink
Browse files

[JENKINS-51183] - Support Directory references in BOM

  • Loading branch information
oleg-nenashev committed May 24, 2018
1 parent 66768f5 commit 5ab8700c1c0ae31e08b1f9bb08721a87d8b8bb78
@@ -54,6 +54,10 @@ public DependencyInfo toWARDependencyInfo() {
dep.source.git = "https://github.com/jenkinsci/" + dep.artifactId + "-plugin.git";
dep.source.branch = ref; // It may be actually commit as well, but the CWP's logic will work
}

if (dir != null) {
dep.source.dir = dir;
}
return dep;
}

@@ -70,6 +74,10 @@ public DependencyInfo toDependencyInfo() {
dep.source.git = "https://github.com/jenkinsci/" + dep.artifactId + "-plugin.git";
dep.source.branch = ref; // It may be actually commit as well, but the CWP's logic will work
}

if (dir != null) {
dep.source.dir = dir;
}
return dep;
}
}
@@ -14,6 +14,9 @@
@CheckForNull
String version;

@CheckForNull
String dir;

public void setVersion(@CheckForNull String version) {
this.version = version;
}
@@ -22,6 +25,10 @@ public void setRef(@CheckForNull String ref) {
this.ref = ref;
}

public void setDir(@CheckForNull String dir) {
this.dir = dir;
}

@CheckForNull
public String getRef() {
return ref;
@@ -31,4 +38,9 @@ public String getRef() {
public String getVersion() {
return version;
}

@CheckForNull
public String getDir() {
return dir;
}
}

0 comments on commit 5ab8700

Please sign in to comment.
You can’t perform that action at this time.