Slide 28
Slide 28 text
class RemoteContainer {
String name
String hostname
Integer port
String username
String password
}
def containers = [new RemoteContainer(name: 'tomcat1', hostname: 'remote-tomcat1',
port: 9090, username: 'admin', password:
's3cr3t'),
new RemoteContainer(name: 'tomcat2', hostname: 'remote-tomcat2',
port: 8050, username: 'deployer', password:
'qwerty'),
new RemoteContainer(name: 'tomcat3', hostname: 'remote-tomcat3',
port: 8888, username: 'su', password:
'powerful')]
Declaring remote container configuration
Container class representation
List of container instances
Avoid defining passwords in
build script