Skip to content

Commit

Permalink
Fix release build
Browse files Browse the repository at this point in the history
fix the formatting of a file so there is no dirt after running format
fixed the maven-shade plugin version to avoid a warning about
instability of the build https://github.com/jenkinsci/google-compute-engine-plugin/actions/runs/6708977590/job/18231008887#step:4:43
  • Loading branch information
jtnord committed Nov 3, 2023
1 parent 4a7f1b1 commit 2695fc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.1</version>
<executions>
<execution>
<phase>package</phase>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ public void construction() throws Exception {
assertNotNull(serviceAccountConfig.getAccountId());
// Create a credential
final String credentialId = "test-credential-id";
GoogleRobotPrivateKeyCredentials c = new GoogleRobotPrivateKeyCredentials(CredentialsScope.GLOBAL, credentialId, ACCOUNT_ID,
serviceAccountConfig, null);
GoogleRobotPrivateKeyCredentials c =
new GoogleRobotPrivateKeyCredentials(
CredentialsScope.GLOBAL, credentialId, ACCOUNT_ID, serviceAccountConfig, null);
CredentialsStore store = new SystemCredentialsProvider.ProviderImpl().getStore(r.jenkins);
assertNotNull(store);
store.addCredentials(Domain.global(), c);
Expand All @@ -73,7 +74,8 @@ public void construction() throws Exception {
List<InstanceConfiguration> ics = new ArrayList<>();
ics.add(instanceConfigurationBuilder().build());
ics.add(instanceConfigurationBuilder().build());
ComputeEngineCloud cloud = new ComputeEngineCloud(CLOUD_NAME, PROJECT_ID, credentialId, INSTANCE_CAP_STR);
ComputeEngineCloud cloud =
new ComputeEngineCloud(CLOUD_NAME, PROJECT_ID, credentialId, INSTANCE_CAP_STR);
cloud.setInstanceId(INSTANCE_ID);
cloud.setConfigurations(ics);

Expand Down

0 comments on commit 2695fc9

Please sign in to comment.