-
-
Notifications
You must be signed in to change notification settings - Fork 329
streamline dynamic machine label creation and cleanup process #6372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
3be7307
to
a2fcdeb
Compare
try { | ||
timeout(time: 120, unit: 'MINUTES') { | ||
// ToDo: pass in platform once we support more platforms. For now, we only support xlinux. | ||
getEBCNode(ebcDemandId, dynamicMachineLabel) | ||
def dynamicMachineLabel = 'ci.agent.dynamic.' + UUID.randomUUID().toString() | ||
getEBCNode(dynamicMachineLabel) | ||
node(dynamicMachineLabel) { | ||
echo "EBC node ${dynamicMachineLabel} is ready" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to check for the node to be ready here? It appears that is what param WAIT is doing on the Create job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say it doesn't hurt if we keep it for when we decide to set wait:false
.
a2fcdeb
to
5e724bc
Compare
5e724bc
to
ac8db10
Compare
Uses create/free EBC pipeline calls which lets manage EBC from central job.
Signed-off-by: [email protected]