Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-1950

Jenkins scripts should use builtin pushd, popd, and cd

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Build Automation
    • Labels:
      None
    • Template:
    • Team:
      Platform OS
    • Sprint:
      Platform OS Kanban
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      RVM sets up hooks on 'cd', 'pushd', and 'popd' which cause 'set -x' to spew a bunch of noise (they're fairly complex hooks). The simplest answer is simply to remove our usage of 'set -x', but our scripts don't really have enough debug output to make tracing failures ueasy if we do that.

      Instead, we can use the 'builtin' command, which bypasses any functions or alilases named the same as a shell builtin. Instead of calling 'pushd', for example, we should call 'builtin pushd'

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              branan Branan Riley
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support