Skip to content

Commit

Permalink
Use a custom artifact instead
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty committed Jun 6, 2024
1 parent 7f26851 commit 67f9c1a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package edu.wpi.first.gradlerio.deploy.roborio;

import javax.inject.Inject;

import edu.wpi.first.deployutils.deploy.artifact.FileTreeArtifact;

public class FRCFileTreeArtifact extends FileTreeArtifact {
@Inject
FRCFileTreeArtifact(String name, RoboRIO target) {
super(name, target);

getPostdeploy().add(ctx -> {
ctx.execute("chown lvuser \"" + getFiles().get().toString() + "\"");
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void setAddresses(String... addresses) {
}

getLocations().create("ds", DSDeployLocation.class, ds -> {
ds.setUser("lvuser");
ds.setUser("admin");
ds.setPassword("");
ds.setIpv6(false);
});
Expand All @@ -105,7 +105,7 @@ public void addAddress(String address) {
getLocations().create(address, SshDeployLocation.class, loc -> {
loc.setAddress(address);
loc.setIpv6(false);
loc.setUser("lvuser");
loc.setUser("admin");
loc.setPassword("");
});
}
Expand Down

0 comments on commit 67f9c1a

Please sign in to comment.