Search code examples
propertiesjenkinsenvironment-variablesstarteam

How to use a environment variable to specify StarTeam Hostname in jenkins?


We moved from Hudson to Jenkins and are using StarTeam for version control.

Now according to this site (https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=47480884) there are no global settings to setup StarTeam config.

So we have to specify the StarTeam configuration manually per project (Jenkins Home/[myProject]/configure 'Source Code Management Section')

Certain properties will always be the same like the HostName and the Port #. Now if we were ever to change the StarTeam server we will have to go to every single project and update it again.

Is there a way that we can specify this in a variable and use it in every project?

We tried to create a global environment var (Jenkins Home/Manage Jenkins/Configure System in the 'Global Properties' section).

Global Properties

And then under the project I am trying to configure I have

Source Code Management

But when it is building it has difficulty connection to server ${STARTEAM_SERVER}. Have anyone used this before?


Solution

  • Sadly, the Starteam Jenkins plugin doesn’t understand parameterized values. You have to enter the IP or machine name instead.

    Raise issue in Jenkins if you want but I don't think anyone is maintaining the Starteam plugin now.