To determine if we should show tools, add metadata to the agent indicating if tools are supported or not.
This'll end up needing some changes on both sides - we've just been using ExportedDeclarativeModel for DeclarativeAgent in the editor, but will need to extend that for this agent-specific thing. No biggie, just a note for myself.
PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/83
Code changed in jenkins User: Andrew Bayer Path: pipeline-model-declarative-agent/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/DeclarativeAgentDescriptor.java pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/Any.java pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/Label.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/52f5bbb9e674b77a25e6232b641171a25484024f Log: JENKINS-40790 Add metadata for whether agents support tools
Will be a corresponding change over in the editor once this gets merged.
Code changed in jenkins User: Andrew Bayer Path: pipeline-model-declarative-agent/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/DeclarativeAgentDescriptor.java pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/Any.java pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/Label.java
http://jenkins-ci.org/commit/pipeline-model-definition-plugin/f1a024946b4ed5475dd9483514f6b80fce80323d Log: Merge pull request #83 from abayer/jenkins-40790
JENKINS-40790 Add metadata for whether agents support tools
Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/cf217be38d68...f1a024946b4e
Bulk closing resolved issues.