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 Nov 9, 2022
1 parent 5e8d953 commit 18242f1
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 18242f1

Please sign in to comment.