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

[JENKINS-53535] Make Bitbucket Server, Owner and repository environment variables for Bitbucket Team/Project based jobs #949

Draft
wants to merge 1 commit into
base: 933.x
Choose a base branch
from

Conversation

nfalco79
Copy link
Member

Add as environment variables some bitbucket useful informations like:

  • repository name (slug);
  • owner name (slug);
  • project key;
  • the server URL.


private final String owner;
private final String repository;
private final String projectKey;

Check warning

Code scanning / Jenkins Security Scan

Jenkins: Plaintext password storage Warning

Field should be reviewed whether it stores a password and is serialized to disk: projectKey
Copy link
Member Author

@nfalco79 nfalco79 Dec 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like neither buildEnv.groovy nor buildEnv.jelly are considered to contribute the "Pipeline Syntax -> Global Variables Reference".

I was looking around when I read this comment of @jglick in a resource file.

@MarkEWaite Is this feature not yet enabled for those who extend GitSCMExtension.populateEnvironmentVariables?

@nfalco79 nfalco79 force-pushed the feature/JENKINS-53535 branch 3 times, most recently from 7d5edd8 to 505d307 Compare December 22, 2024 17:45
…nt variables for Bitbucket Team/Project based jobs

Add as environment variables some bitbucket useful informations like:
- repository name (slug);
- owner name (slug);
- project key;
- the server URL.
@nfalco79 nfalco79 force-pushed the feature/JENKINS-53535 branch from 505d307 to da0a382 Compare December 22, 2024 17:45
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

Successfully merging this pull request may close these issues.

1 participant