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

Fixed the path to folder destination of download with JDK file #15314

Merged

Conversation

AnnaOpareva
Copy link
Contributor

@AnnaOpareva AnnaOpareva commented Sep 22, 2021

Task name: JavaToolInstallerV0

Description: fix the path to folder destination of download with JDK file
In past - if we have on the Azure Blob storage path to the JDK like:

azureCommonVirtualFile: 'foldername/nameJDK.tar.gz'

and destination

jdkDestinationDirectory: './destination'

the task failed with error:
##[error]ENOENT: no such file or directory, stat '/azagent/_work/1/destination/foldername/nameJDK.tar.gz''

Now we can use any subdirectory for JDK - always we will use the right directory for unpacking, like /azagent/_work/1/destination/nameJDK.tar.gz

Tested for structures:

  1. folder1/nameJDK

  2. folder1/nameJDK
    folder2/nameJDK

  3. folder1/nameJDK
    folder2/level2/nameJDK

  4. nameJDK

Documentation changes required: (Y/N) N

Added unit tests: (Y/N) N
Attached related issue: (Y/N) #14214

Checklist:

  • Task version was bumped - please check instruction how to do it
  • Checked that applied changes work as expected

@AnnaOpareva AnnaOpareva requested a review from a team as a code owner September 22, 2021 07:53
@anatolybolshakov
Copy link
Contributor

Do we have test coverage for this?

@alexander-smolyakov
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines failed to run 4 pipeline(s).

@AnnaOpareva
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines failed to run 2 pipeline(s).

@AnnaOpareva
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@AnnaOpareva AnnaOpareva merged commit 9be3ef5 into master Oct 6, 2021
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.

3 participants