Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-66684] Provide colorMapName to allow generating example snippet #234

Merged
merged 3 commits into from
Nov 7, 2021

Conversation

tszmytka
Copy link
Collaborator

@tszmytka tszmytka commented Nov 7, 2021

Fixes JENKINS-66684
Title pretty much sums all up. AnsiColorStep's constructor field received a getter to allow properly generating an example snippet for ansiColor.

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@tszmytka tszmytka added the bugfix (release-drafter) label Nov 7, 2021
@dblock dblock merged commit e285fb3 into jenkinsci:master Nov 7, 2021
public void canGetConstructorParametersForSnippetGenerator() {
final String colorMapName = AnsiColorMap.VGA.getName();
final AnsiColorStep step = new AnsiColorStep(colorMapName);
assertThat(step.getColorMapName()).isEqualTo(colorMapName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are actually better test utilities in workflow-step-api and workflow-cps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix (release-drafter)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants