Skip to content

Commit

Permalink
clearer method for converting to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Stehler committed Feb 9, 2023
1 parent 72a1180 commit 00d4641
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static GenericBuild genericBuild(
String friendlyName = String.format("%s (%s)", pipeline.getRef(), pipeline.getId());
GenericBuild genericBuild = new GenericBuild();
genericBuild.setBuilding(GitlabCiResultConverter.running(pipeline.getStatus()));
genericBuild.setNumber(pipeline.getId() + "");
genericBuild.setNumber(String.valueOf(pipeline.getId()));
genericBuild.setResult(
GitlabCiResultConverter.getResultFromGitlabCiState(pipeline.getStatus()));
genericBuild.setName(friendlyName);
Expand Down

0 comments on commit 00d4641

Please sign in to comment.