You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The executor should source utility scripts such as automation/utility.sh from the current provider within the executor plugins directory as well as the currently sourced shared provider scripts.
Current Behavior
Currently, the script automation/common.sh is dot-sourced at the top of most bash scripts in order to provider common functions. Within common.sh, other scripts such as automation/utility.sh are subsequently dot-sourced, providing further functionality and environment variable exports. These are essential for the original scripts to function and have access to the appropriate content.
This behaviour does not currently support provider-specific content without merging it into the shared provider.
Possible Solution
Option 1
If within automation/common.sh a lookup is performed for plugins matching the current provider, both the shared and provider utility scripts could be dot-sourced.
Both AWS and Azure would require a new repository to host executor plugin content .
Option 2
The lookup is performed on the engine plugin directory, seeking the same file. This is less desirable as it does not maintain a separation between engine/executor however it does mean plugin developers only have the one code repository to develop.
Context
Provider-specific utility functions currently must be merged with the shared provider, which poses a blocker for non-official plugins.
The text was updated successfully, but these errors were encountered:
Expected Behavior
The executor should source utility scripts such as
automation/utility.sh
from the current provider within the executor plugins directory as well as the currently sourced shared provider scripts.Current Behavior
Currently, the script
automation/common.sh
is dot-sourced at the top of most bash scripts in order to provider common functions. Withincommon.sh
, other scripts such asautomation/utility.sh
are subsequently dot-sourced, providing further functionality and environment variable exports. These are essential for the original scripts to function and have access to the appropriate content.This behaviour does not currently support provider-specific content without merging it into the shared provider.
Possible Solution
Option 1
If within
automation/common.sh
a lookup is performed for plugins matching the current provider, both the shared and provider utility scripts could be dot-sourced.Both AWS and Azure would require a new repository to host executor plugin content .
Option 2
The lookup is performed on the engine plugin directory, seeking the same file. This is less desirable as it does not maintain a separation between engine/executor however it does mean plugin developers only have the one code repository to develop.
Context
Provider-specific utility functions currently must be merged with the shared provider, which poses a blocker for non-official plugins.
The text was updated successfully, but these errors were encountered: