Agent label conditional

2020-07-27 Thread Alex Panayi
Hey guys.

I have a step where i want to conditionally pick the agent based on the 
parameter. 

I can easily do this by duplicating the step, and having a when statement, 
but this creates step duplication. I just want the agent label to be 
dynamically changed based on a parameter.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6ed5e088-55f8-4edc-8eae-8b02abe8566fn%40googlegroups.com.


Ec2 Plugin - VPC Peering

2020-06-26 Thread Alex Panayi
Hey everyone.

We have a setup between two AWS accounts, connected via VPC peering. We are 
using the AWS ec2 plugin, to set up an agent on jenkins.

Our jenkins master is located in VPC A, and we would like to setup an agent 
in VPC B. 

VPC A has peering connection to VPC B, with route tables set up etc.

The problem we have is that, when we specify the subnet ID in jenkins, we 
get the error:


*com.amazonaws.services.ec2.model.AmazonEC2Exception: The subnet ID 
'subnet-xx' does not exist (Service: AmazonEC2; Status Code: 400; Error 
Code: InvalidSubnetID.NotFound; Request ID: 
ef17dd8c-34d7-4591-b598-2b1338ee531b)*
The subnet is a subnet located in VPC B. 

Is there a specific way we have to define the subnet in jenkins, since it's 
from another VPC?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1e5d7b34-2bdc-469a-8026-ceaa26325b2fn%40googlegroups.com.