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 Dec 14, 2022
1 parent e538be4 commit 9b381d1
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 9b381d1

Please sign in to comment.