[JIRA] (JENKINS-52454) Testlink integration

11 views
Skip to first unread message

c_gmeiner@gmx.de (JIRA)

unread,
Jul 10, 2018, 8:58:02 AM7/10/18
to jenkinsc...@googlegroups.com
Clemens Gmeiner created an issue
 
Jenkins / Improvement JENKINS-52454
Testlink integration
Issue Type: Improvement Improvement
Assignee: Bruno P. Kinoshita
Components: testlink-plugin
Created: 2018-07-10 12:57
Environment: Testlink 1.9.16 (platform support)
Jenkins 2.73.3
Priority: Minor Minor
Reporter: Clemens Gmeiner

We would like to have a way to pass the parameterized "node name" of "This project is parameterized" to the "Platfrom Name" Parameter of the "Invoke TestLink Step".

This would help to avoid a maintain lot of different jenkins job(s) for the testlink automation. Our setup is a 1 to 1 match between jenkins nodes and testlink platforms

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

c_gmeiner@gmx.de (JIRA)

unread,
May 22, 2019, 6:11:03 PM5/22/19
to jenkinsc...@googlegroups.com
Clemens Gmeiner commented on Improvement JENKINS-52454
 
Re: Testlink integration

Is there something we can do to get a higher priority for this idea ? I can image to to sponsor the development effort.

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

brunodepaulak@yahoo.com.br (JIRA)

unread,
May 22, 2019, 6:37:03 PM5/22/19
to jenkinsc...@googlegroups.com
Bruno P. Kinoshita commented on Improvement JENKINS-52454
 
Re: Testlink integration

Hi Clemens Gmeiner feel free to contact me off-list if you would like to sponsor this issue.

Cheers
Bruno

brunodepaulak@yahoo.com.br (JIRA)

unread,
May 22, 2019, 6:39:03 PM5/22/19
to jenkinsc...@googlegroups.com
 
Re: Testlink integration

Otherwise, if you are in no hurry, it is really not a very complex issue. It would just need to wait until I have time to work on this one (probably near December, unless I have some other project that needs work). I think I also need to update the testlink-java-api for 1.9.19, and was planning on doing that after November, which normally includes going through pending issues.

brunodepaulak@yahoo.com.br (JIRA)

unread,
Sep 28, 2019, 4:06:03 AM9/28/19
to jenkinsc...@googlegroups.com
Change By: Bruno P. Kinoshita
Status: Open Fixed but Unreleased
Resolution: Not A Defect
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

brunodepaulak@yahoo.com.br (JIRA)

unread,
Sep 28, 2019, 4:12:02 AM9/28/19
to jenkinsc...@googlegroups.com
Bruno P. Kinoshita updated an issue
Change By: Bruno P. Kinoshita
Attachment: Screenshot_2019-09-28_20-01-40.png
Attachment: Screenshot_2019-09-28_20-02-21.png
Attachment: Screenshot_2019-09-28_20-02-58.png

brunodepaulak@yahoo.com.br (JIRA)

unread,
Sep 28, 2019, 4:13:02 AM9/28/19
to jenkinsc...@googlegroups.com
 
Re: Testlink integration

Hi Clemens Gmeiner,

Closed the issue as Not A Defect. Turns out this feature was implemented long time ago. Took me a moment to find it in the code, and a bit longer to test it.

1. Added a node to Jenkins called "localhost" using the slave.jar
2. Added a fake TestLink installation in global configuration
3. Created a job in Jenkins and for platform name, used "$NODE_NAME"

We are "expanding" (i.e. converting $NODE_NAME to whatever value is bound in Jenkins environment) the following environment variables in the plugin:

  • project name
  • test plan name
  • platform name
  • build name
  • build notes

See here for code: https://github.com/jenkinsci/testlink-plugin/blob/1235c466a7b460c39f4fba46051082c1d9c214ff/src/main/java/hudson/plugins/testlink/TestLinkBuilder.java#L189-L197

Which means, when you configure these variables in a Jenkins job for the plugin, you can use any of the variables available in Jenkins. So any of this list: https://wiki.jenkins.io/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-belowJenkinsSetEnvironmentVariables

Or any variable defined in plugins that increments this list.

Few screenshots of a quick test with a debugger in Eclipse.



In case I missed something, or it doesn't really solves the issue described here, feel free to point out what is missing and re-open this issue.

Cheers
Bruno

Reply all
Reply to author
Forward
0 new messages