Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multi-configuration job - where is the output?

Tags:

jenkins

I'm a newbie to Jenkins, so perhaps it is a stupid question, but...

I'm trying to write a job that will compile my code on several UNIX nodes. I created a multi-configuration project, and add one slave to it.

The job itself is a shell that only does 'ls' and 'pwd'

The output is:

Started by user anonymous
Building on master in workspace C:\Program Files (x86)\Jenkins\workspace\Unix-third-party
Triggering Linux64
Linux64 completed with result SUCCESS
Finished: SUCCESS

But I can't see the output of the commends anywhere.

When I changed the matrix to use nodes instead of labels, I managed, to see the output, but I'm still not sure what I did.

A free-style project for the same node works with no problems.

Where do I find the output?

like image 650
ModdyFire Avatar asked Oct 18 '12 12:10

ModdyFire


People also ask

What is multi-configuration job in Jenkins?

Jenkins provides multi-configuration project. With this option we can create only one job with many configurations. Each configuration will be executed as a separate job. This is exactly what we need to simplify our scheduled tests, which can be used in conjunction with TestComplete or TestExecute.

What is multi-configuration?

multiconfiguration (not comparable) (physics, chemistry) Having, or involving multiple configurations.

What is configuration matrix in Jenkins?

The Configuration Matrix allows you to specify what steps to duplicate, and create a multiple-axis graph of the type of builds to create. For example, let us say that we have a build that we want to create for several different targets alpha, beta, and we want to produce both debug and release outputs.


2 Answers

On your job page, you'll see a link called "default" if you have only one node/slave, or the node's name if you have more than one.

Click on that link, then click on a build and console output.

The way it works is:

                                         -----------------config 1 -> build #X -> console output
                                       /
Main Job build #X console output ---->
                                       \-----------------config 2 -> build #X -> console output

What you are looking at is the console output for the main job, but this only contains trigger information. The actual output is contained in the config 1 and config 2 console outputs.

Comment if you need further clarification, and I'd be glad to help. Btw, welcome to the world of Jenkins :-)

==========================================================================

EDIT:

The following URL should take you to yourc console output for a build where you've chosen "Label":

Substitute everything in <>.

http://<myserver>/job/<jobname>/label=<label>/<buildnumber>/console
like image 114
Sagar Avatar answered Oct 23 '22 18:10

Sagar


Not sure if this will help you, however at work, to view our slave consoles, the following URL will work:

https://ci.(company).com/job/QA/job/[projectname]/13/script=loadtest1/console

I'd assume your system would be similar.

Alternatively, if i go to the main ci.(company).com/job/QA/job/[projectname]/ i can see the recent job on the left corner.

When selected that specific job, at the base of the screen is our configurations, which you select, then can view the console output of that specific job.

Viewing the main jenkins job will not output console logs from slaves.

like image 33
Jordan Avatar answered Oct 23 '22 19:10

Jordan