Track additional environment variables for Java tasks
See original GitHub issueNote
Currently, there are a bunch of tasks that you javacommon
to publish telemetry:
- https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/ANTV1/anttask.ts#L233
- https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/GradleV2/gradletask.ts#L152
- https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/MavenV2/maventask.ts#L114
- https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/MavenV3/maventask.ts#L117
- https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/XamarinAndroidV1/xamarinandroid.ts#L39
All these tasks use publishJavaTelemetry
function from java-common.ts.
I see two issues with this function:
- it is duplicate https://github.com/microsoft/azure-pipelines-tasks/blob/master/common-npm-packages/utility-common-v2/telemetry.ts#L13
- It doesn’t publish additional environment variables
I suggest to get rid of publishJavaTelemetry
and switch all tasks to emitTelemetry
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Feature
Environment
Azure Pipelines
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Working with Environment Variables in Java - Twilio
How to access environment variables in Java ... One of the most common ways is to use System.getenv(), which accepts an optional String...
Read more >Environment Variables - The Java™ Tutorials
This Java tutorial describes exceptions, basic input/output, concurrency, regular expressions, and the platform environment.
Read more >Setting Java variables in Windows - IBM
Right-click the Computer icon on your desktop and select Properties. · Click Advanced system settings. · Click Environment variables. · Under User variables,...
Read more >Java: Get the value of the environment variable - w3resource
Java programming exercises and solution: Write a Java program to get the value of the environment variable PATH, TEMP, USERNAME.
Read more >How to set the environment variables for Java in Windows
In Windows 7, right-click on Computer -> Properties -> Advanced system settings; then in the Advanced tab, click Environment Variables... -> System variables...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @maxim-lobanov 😃 Sorry for the delay - we are working on more prioritized tickets at the moment, but will get back to this one once be able to.
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days