public abstract class AbstractTotalTestBuilderMigration
extends hudson.tasks.Builder
Modifier and Type | Field and Description |
---|---|
protected String |
connectionId |
protected String |
hostPort
Deprecated.
|
protected boolean |
isMigrated |
Constructor and Description |
---|
AbstractTotalTestBuilderMigration() |
Modifier and Type | Method and Description |
---|---|
String |
getHostPort()
Deprecated.
|
protected boolean |
isMigrated()
Return true if the configuration is migrated.
|
static void |
jobLoaded() |
protected void |
migrateConnectionInfo()
Migrate configuration information from 1.X to 2.0.
|
protected Object |
readResolve()
Called when object has been deserialized from a stream.
|
void |
setHostPort(String hostPort)
Deprecated.
|
all, getDescriptor, getRequiredMonitorService, prebuild
protected String connectionId
@Deprecated protected transient String hostPort
protected transient boolean isMigrated
protected boolean isMigrated()
protected Object readResolve()
Data migration:
In 2.0 "hostPort" was were removed and replaced by a list of host connections. This list is a global and created with the Global Configuration page. If old hostPort property exist, then a an attempt is made to create a new host connection with these properties and add it to the list of global host connections, as long as there is no other host connection already existing with the same properties.
this
, or a replacement for this
.protected void migrateConnectionInfo()
Data migration:
In 2.0 "hostPort" and "codePage" were removed and replaced by a list of host connections. This list is a global and created with the Global Configuration page. If old hostPort and codePage properties exist, then a an attempt is made to create a new host connection with these properties and add it to the list of global host connections, as long as there is no other host connection already existing with the same properties.
@DataBoundSetter @Deprecated public void setHostPort(String hostPort)
This method is used in version 1.x pipeline projects to set the host and port(host:port). When 2.0 projects are created, they will use the connection id's to identify the connection.
hostPort
- The host and port@Deprecated public String getHostPort()
This method is used in version 1.x pipeline projects to retrieve the host and port(host:port). When 2.0 project are created, they will use the connection id's to identify the connection.
@Initializer(after=JOB_LOADED, before=COMPLETED) public static void jobLoaded() throws IOException
IOException
Copyright © 2016–2023. All rights reserved.