# Generate Declarative Directive Button does not work

**URL:** <https://community.jenkins.io/t/generate-declarative-directive-button-does-not-work/11735>\
**Category:** Using Jenkins\
**Tags:** question, pipeline\
**Created:** [January 11, 2024, 7:00pm UTC](https://community.jenkins.io/t/generate-declarative-directive-button-does-not-work/11735 "2024-01-11T19:00:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JV01](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@JV01](https://community.jenkins.io/u/JV01)\
**Post date:** [January 11, 2024, 7:00pm UTC](https://community.jenkins.io/t/generate-declarative-directive-button-does-not-work/11735/1 "2024-01-11T19:00:09Z")

</div>

1. Use the tool from a pipeline.
2. Select Declarative Director Generator
3. Select a sample directive
4. press Generate Declarative Directive.
5. No output. No errors thrown either.

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [January 11, 2024, 9:51pm UTC](https://community.jenkins.io/t/generate-declarative-directive-button-does-not-work/11735/2 "2024-01-11T21:51:00Z")

</div>

I can’t duplicate that failure. Steps that I tried include:

1. Start Jenkins 2.426.2 from the war file on Linux
2. Choose the setup wizard path that allows me to choose components
3. Choose Pipeline and Git and a few others
4. Let the install complete, confirm that a declarative Pipeline works as expected
5. Uninstall the declarative Pipeline plugins and restart Jenkins
6. Confirm the declarative Pipeline menu selections are no longer available

As a wild guess, you might check that you’ve installed all the plugins that are required for declarative Pipeline. The key plugin is [“Pipeline: Declarative”](https://plugins.jenkins.io/pipeline-model-definition/)

---

<div class="post-metadata">

**Author:** ![JV01](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@JV01](https://community.jenkins.io/u/JV01)\
**Post date:** [January 11, 2024, 10:23pm UTC](https://community.jenkins.io/t/generate-declarative-directive-button-does-not-work/11735/3 "2024-01-11T22:23:05Z")

</div>

I will look through dependencies one by one.

---

<div class="post-metadata">

**Author:** ![JV01](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@JV01](https://community.jenkins.io/u/JV01)\
**Post date:** [January 11, 2024, 11:37pm UTC](https://community.jenkins.io/t/generate-declarative-directive-button-does-not-work/11735/4 "2024-01-11T23:37:13Z")

</div>

After installing all the dependencies and updating [“Pipeline: Declarative”] it worked. Thank you.
