Able to affect enviroments of subsequent steps from one step (OD-2525)
Robin Shen opened 5 months ago
No description
  • Robin Shen referenced from other issue 5 months ago
  • Robin Shen commented 5 months ago

    Turns out this is quite easy in OneDev. Since all steps in a single job shares same workspace directory, you may write the envs to be applied in subsequent steps into a workspace file, and then apply envs from that file later. For instance, in the first step:

    export PATH="$PATH:/some/other/path"
    echo "export PATH=\"$PATH\"" > path.sh
    

    And in every subsequent step need to use the env, just add below statement before doing other things:

    . ./path.sh
    
  • Robin Shen changed state to 'Closed' 5 months ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
New Feature
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2525
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover