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

Multibranch pipeline Workspace env var fix and refactoring the code #151

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ganeshborle
Copy link
Collaborator

Description

Previously, we had implemented a code that was functional for a "FreeStyle" type of pipeline, but when we attempted to run it on a "Multi Branch" pipeline, we encountered some issues. After some investigation, we discovered that the root cause of the problem was the "${WORKSPACE}" variable not being properly resolved during runtime for the multi-branch pipeline. We determined that we needed to explicitly add this environment variable to the pipeline to ensure it was correctly resolved. By doing so, we were able to resolve the issue and enable the code to function properly on both the "FreeStyle" and "Multi Branch" pipelines.

Error
image

Environment variables which don't contain the WORKSPACE
image

Fixed Plugin Console output
image

Relevant Jira

TS-2119 Unable to pack the windows project in multi-branch pipeline project in Jenkins

@ganeshborle ganeshborle self-assigned this Apr 12, 2023
@ganeshborle ganeshborle added the bug Something isn't working label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant