WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@ganeshborle
Copy link
Contributor

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.

2 participants