Skip to content

Commit

Permalink
[FIXED JENKINS-9267]
Browse files Browse the repository at this point in the history
  • Loading branch information
rseguy committed Apr 7, 2011
1 parent ab29751 commit d3f0c21
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 37 deletions.
7 changes: 7 additions & 0 deletions .gitignore
@@ -0,0 +1,7 @@
target
work

# Eclipse project files
.settings
.classpath
.project
21 changes: 21 additions & 0 deletions README.md
@@ -0,0 +1,21 @@
Quality Center plugin
=====================
Copyright © 2010-2011, Manufacture Française des Pneumatiques Michelin, Thomas Maurel, Romain Seguy and other contributors. Licensed under [MIT License].

About this plugin
-----------------
The Quality Center plugin is meant to be used from [Hudson][1] or [Jenkins][2] to trigger HP Quality Center test sets as build steps. Please take a look at [Jenkins' wiki][3] to get detailed information.

Installation
------------
The Quality Center plugin can be installed from any Hudson or Jenkins installation connected to the Internet using the **Plugin Manager** screen.

Source code
-----------
The primary location for the source code of this plugin is on [Jenkins' SVN repository][4]. It is also mirrored on [GitHub][5] for conveniency.

[1]: http://hudson-ci.org/
[2]: http://jenkins-ci.org/
[3]: http://wiki.jenkins-ci.org/display/JENKINS/Quality+Center+Plugin
[4]: https://svn.jenkins-ci.org/trunk/hudson/plugins/qc/
[5]: https://github.com/jenkinsci/qc-plugin
96 changes: 62 additions & 34 deletions pom.xml
@@ -1,37 +1,65 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>plugin</artifactId>
<version>1.358</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>qc</artifactId>
<packaging>hpi</packaging>
<version>1.0.1-SNAPSHOT</version>
<name>Hudson Quality Center Plug-in</name>
<url>http://wiki.hudson-ci.org/display/HUDSON/Quality+Center+Plugin</url>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>plugin</artifactId>
<version>1.375</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>qc</artifactId>
<packaging>hpi</packaging>
<version>1.0.1-SNAPSHOT</version>
<name>Quality Center Plugin</name>
<url>http://wiki.jenkins-ci.org/display/HUDSON/Quality+Center+Plugin</url>

<developers>
<developer>
<id>tmaurel</id>
<name>Thomas Maurel</name>
<timezone>+1</timezone>
</developer>
<developer>
<id>rseguy</id>
<name>Romain Seguy</name>
<timezone>+1</timezone>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.jvnet.com4j</groupId>
<artifactId>com4j</artifactId>
<version>20070717</version>
</dependency>
</dependencies>
<developers>
<developer>
<id>tmaurel</id>
<name>Thomas Maurel</name>
<timezone>+1</timezone>
</developer>
<developer>
<id>rseguy</id>
<name>Romain Seguy</name>
<timezone>+1</timezone>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>org.jvnet.com4j</groupId>
<artifactId>com4j</artifactId>
<version>20070717</version>
</dependency>
</dependencies>

<!-- see http://groups.google.com/group/jenkinsci-dev/browse_thread/thread/83e34c639eec470a for the rationale behind this -->
<build>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<goals>deploy</goals>
</configuration>
</plugin>
</plugins>
</build>

<!-- see http://groups.google.com/group/jenkinsci-dev/browse_thread/thread/83e34c639eec470a for the rationale behind this -->
<scm>
<connection>scm:svn:https://guest@svn.jenkins-ci.org/trunk/hudson/plugins/qc/</connection>
<developerConnection>scm:svn:https://svn.jenkins-ci.org/trunk/hudson/plugins/qc/</developerConnection>
<url>https://hudson.dev.java.net/source/browse/hudson/trunk/hudson/plugins/qc</url>
</scm>

<!-- see http://groups.google.com/group/jenkinsci-dev/browse_thread/thread/6ea03cf2b527376c for the rationale behind this -->
<distributionManagement>
<repository>
<id>java.net-m2-repository</id>
<url>http://maven.jenkins-ci.org/content/repositories/releases/</url>
</repository>
</distributionManagement>
</project>
11 changes: 8 additions & 3 deletions src/main/resources/runTestSet.vbs
@@ -1,7 +1,7 @@
' The MIT License
'
' Copyright (c) 2010, Manufacture Française des Pneumatiques Michelin, Thomas Maurel,
' CollabNet, Johannes Nicolai
' Copyright (c) 2010-2011, Manufacture Française des Pneumatiques Michelin, Thomas Maurel,
' CollabNet, Johannes Nicolai, Shane Smart
'
' Permission is hereby granted, free of charge, to any person obtaining a copy
' of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -242,7 +242,12 @@ Class QCTestRunner
For Each test In tList
WScript.StdOut.WriteLine "| " & addBlankSpaces(test.Name, 15) & " | " & addBlankSpaces(test.ID, 6) & " | " & addBlankSpaces(test.HostName, 20) & "|"
WScript.StdOut.WriteLine generateLine(50)
Scheduler.RunOnHost(test.ID) = test.HostName

If test.HostName = "" Then
Scheduler.RunOnHost(test.ID) = "localhost"
Else
Scheduler.RunOnHost(test.ID) = test.HostName
End If
Next

Scheduler.RunAllLocally = False
Expand Down

0 comments on commit d3f0c21

Please sign in to comment.