Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37871

Credentials-binding plugin is executed after pre-release build steps of release-plugin

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins 1.609.3
      release-plugin:2.5.4
      credentials-binding-plugin:1.9
    • Similar Issues:

      Description

      Problem

      Injecting credentials through the credentials-binding plugin is done too late when using the prebuild steps of the release-plugin.
      The credentials-binding plugin is executed after the prebuild steps of the release-plugin, so any injected credentials cannot be used it.

      Steps to reproduce
      • Inject a secret through the credentials-binding plugin
      • Enable 'configure a release' build wrapper
      • Configure the release-plugin with a pre-release shell step, which echoes the injected secret to build log
      • Create a normal shell build step which echoes the injected secret to build log

      See trigger-release-build.txt for an output of the above steps.
      You see that the injected secret is not available in the pre-release step of the release-plugin buildwrapper, but it is in the normal build step.

      Expected behavior

      As a user, I can inject the credentials and use them with the pre-release steps of the release-plugin.

        Attachments

          Issue Links

            Activity

            hawky4s Christian Lipphardt created issue -
            hawky4s Christian Lipphardt made changes -
            Field Original Value New Value
            Summary Credentials binding plugin is executed after Release Wrapper Credentials binding plugin is executed after prebuild steps of release-plugin
            hawky4s Christian Lipphardt made changes -
            Summary Credentials binding plugin is executed after prebuild steps of release-plugin Credentials-binding plugin is executed after prebuild steps of release-plugin
            hawky4s Christian Lipphardt made changes -
            Attachment trigger-release-build.txt [ 33784 ]
            hawky4s Christian Lipphardt made changes -
            Description h5. Problem

            Injecting credentials through the credentials-binding plugin is done too late when using the prebuild steps of the release-plugin.
            The credentials-binding plugin is executed after the prebuild steps of the release-plugin, so any injected credentials cannot be used it.

            h5. Expected behaviour

            As a user, I can inject the credentials and use them with the prebuild steps of the release plugin.
            h5. Problem

            Injecting credentials through the credentials-binding plugin is done too late when using the prebuild steps of the release-plugin.
            The credentials-binding plugin is executed after the prebuild steps of the release-plugin, so any injected credentials cannot be used it.

            h5. Steps to reproduce


            h5. Expected behavior

            As a user, I can inject the credentials and use them with the prebuild steps of the release plugin.
            hawky4s Christian Lipphardt made changes -
            Description h5. Problem

            Injecting credentials through the credentials-binding plugin is done too late when using the prebuild steps of the release-plugin.
            The credentials-binding plugin is executed after the prebuild steps of the release-plugin, so any injected credentials cannot be used it.

            h5. Steps to reproduce


            h5. Expected behavior

            As a user, I can inject the credentials and use them with the prebuild steps of the release plugin.
            h5. Problem

            Injecting credentials through the credentials-binding plugin is done too late when using the prebuild steps of the release-plugin.
            The credentials-binding plugin is executed after the prebuild steps of the release-plugin, so any injected credentials cannot be used it.

            h5. Steps to reproduce
            * Inject a secret through the credentials-binding plugin
            * Enable 'configure a release' build wrapper
            * Configure the release-plugin with a pre-release shell step, which echoes the injected secret to build log
            * Create a normal shell build step which echoes the injected secret to build log

            See [^trigger-release-build.txt] for an output of the above steps.
            You see that the injected secret is not available in the pre-release step of the release-plugin buildwrapper, but it is in the normal build step.

            h5. Expected behavior

            As a user, I can inject the credentials and use them with the prebuild steps of the release-plugin.
            hawky4s Christian Lipphardt made changes -
            Description h5. Problem

            Injecting credentials through the credentials-binding plugin is done too late when using the prebuild steps of the release-plugin.
            The credentials-binding plugin is executed after the prebuild steps of the release-plugin, so any injected credentials cannot be used it.

            h5. Steps to reproduce
            * Inject a secret through the credentials-binding plugin
            * Enable 'configure a release' build wrapper
            * Configure the release-plugin with a pre-release shell step, which echoes the injected secret to build log
            * Create a normal shell build step which echoes the injected secret to build log

            See [^trigger-release-build.txt] for an output of the above steps.
            You see that the injected secret is not available in the pre-release step of the release-plugin buildwrapper, but it is in the normal build step.

            h5. Expected behavior

            As a user, I can inject the credentials and use them with the prebuild steps of the release-plugin.
            h5. Problem

            Injecting credentials through the credentials-binding plugin is done too late when using the prebuild steps of the release-plugin.
            The credentials-binding plugin is executed after the prebuild steps of the release-plugin, so any injected credentials cannot be used it.

            h5. Steps to reproduce
            * Inject a secret through the credentials-binding plugin
            * Enable 'configure a release' build wrapper
            * Configure the release-plugin with a pre-release shell step, which echoes the injected secret to build log
            * Create a normal shell build step which echoes the injected secret to build log

            See [^trigger-release-build.txt] for an output of the above steps.
            You see that the injected secret is not available in the pre-release step of the release-plugin buildwrapper, but it is in the normal build step.

            h5. Expected behavior

            As a user, I can inject the credentials and use them with the pre-release steps of the release-plugin.
            hawky4s Christian Lipphardt made changes -
            Summary Credentials-binding plugin is executed after prebuild steps of release-plugin Credentials-binding plugin is executed after pre-release build steps of release-plugin
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ] Christian Lipphardt [ hawky4s ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "Page (Jenkins Wiki)" [ 19876 ]

              People

              • Assignee:
                hawky4s Christian Lipphardt
                Reporter:
                hawky4s Christian Lipphardt
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: