Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass these step ENV into gradleExecuteBuild? #162

Open
JosephCen opened this issue Dec 1, 2023 · 0 comments
Open

How to pass these step ENV into gradleExecuteBuild? #162

JosephCen opened this issue Dec 1, 2023 · 0 comments

Comments

@JosephCen
Copy link

For step 'gradleExecuteBuild', how to pass below ENV to the gradle execution docker container?

Run SAP/project-piper-action@main
  with:
    step-name: gradleExecuteBuild
    flags: --publish --createBOM
  env:
    PIPER_ACTION_PIPER_VERSION: latest
    PIPER_ACTION_SAP_PIPER_VERSION: latest
    PIPER_ACTION_SAP_PIPER_OWNER: project-piper
    PIPER_ACTION_SAP_PIPER_REPOSITORY: sap-piper
    PIPER_ACTION_GITHUB_ENTERPRISE_TOKEN: ***
    PIPER_ACTION_PIPELINE_ENV: {****}

I want to access these ENV in build.gradle with below code:

System.getenv('PIPER_ACTION_PIPELINE_ENV')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant