test #135
@ -23,7 +23,7 @@ public class DeployService {
|
|||||||
|
|
||||||
public void redeploy(Long stackId) {
|
public void redeploy(Long stackId) {
|
||||||
PortainerStack stack = portainerApiClient.getStack(stackId);
|
PortainerStack stack = portainerApiClient.getStack(stackId);
|
||||||
List<EnvVariable> env = stack.getEnv();
|
List<EnvVariable> env = stack.getEnv() != null ? stack.getEnv() : List.of();
|
||||||
portainerApiClient.redeployGitStack(stackId, props.getEndpointId(), true, env);
|
portainerApiClient.redeployGitStack(stackId, props.getEndpointId(), true, env);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user