Jenkins Envriement variable use

Fermé
Jenkins_M Messages postés 1 Date d'inscription mardi 16 mai 2017 Statut Membre Dernière intervention 16 mai 2017 - 16 mai 2017 à 12:05
Hello Dear,

I need to extract information from a generated text file and send them directly via Jenkins into the field "Default Content" "See Jenkins inteface"

Let me explain : Actually after Jenkins Job build OK: we are notified by mail , with content that will be staticlly defined into filed "Default Content", and in attachement , file .txt that will present details about tests execution result such as Number of failed test : 20% Number of Passed test : 80%

My current need is the following: Instead of sending an attached file with details , I wan't to be sent directly from jenkins into field ""Default Content""

For example:

Hello we will find bellow the details about the non-regression test.

Number of executed tests : @EnvVariable1

Percent of passed tests : @EnvVariable2
Percent of failed tests : @EnvVariable3
list of failed tests:

@EnvVariable4

// @EnvVariable1, @EnvVariable2, @EnvVariable3, @EnvVariable4will be extracted for .txt file

After a small analysis , I think that the jenkins Environment variable use can achieve this objective. What's do you think ? If yes , Can you please give me support and telling me what should I do ?

In advance thanks

Have a nice day