Agent-side Object Model changing buildnumber

Can i change the buildnumber from the Agent-side Object Model?

 

If yes how do i change it?

3 comments
Comment actions Permalink

Hi, you can update the build number using a 'buildNumber' service message

If you want to send this message from a plugin code you can do something like this:

build.getBuildLogger().message(new BuildNumber("1").asString());
//build is an instance of jetbrains.buildServer.agent.AgentRunningBuild
0
Comment actions Permalink

How can i use service messages from

BuildServerListener.buildStarted

Using

sRunningBuild.getBuildLog().message

doesn't work.

0
Comment actions Permalink

Hi, BuildServerListener is a part of server-side model, while you asked about agent-side model. Do you want to update the build number for the agent of from the server?

0

Please sign in to leave a comment.