jenkinsci / jenkinsci/agent-setup-plugin

[JENKINS-16729] Default tokens for slaves

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
component:slave-setup-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
11
Forks
23
Avg merge
21h 13m
Merged PRs (30d)
1

Description

Often labels are used to declare "this is a windows x86 job, so it must run on a windows x86 or x64 machine". As this is rather intuitive, it is a lot to type again and again – and people will make errors typing in the expression "windows && (x86 || x64)" possibly. Or people think it is EM64 intead of x64. And so on.

To solve this, it would be great if Jenkins would know some default tokens. That means, Jenkins shall check the slave and assign non-removable tokens inherently, that can be used just as custom labels.


  • If it is a Windows machine, it should be auto-labelled with the tag "windows".

  • If it is a Linux machine, it should be auto-labelled with the tag "linux".

  • If it is a x86 machine, it should be auto-labelled with the tag "x86".

  • If it is a x64 machine, it should be auto-labelled with the tag "x64".

Also, it would be cool if the suggestions popping up would not only contain single tags, but at the same momen suggest the most useful completions like "windows && (x86 || x64)".

---
Originally reported by mkarg, imported from: Default tokens for slaves


  • assignee: kohsuke
  • status: Open
  • priority: Major
  • component(s): slave-setup-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251216-225446

Raw content of original issue

Often labels are used to declare "this is a windows x86 job, so it must run on a windows x86 or x64 machine". As this is rather intuitive, it is a lot to type again and again – and people will make errors typing in the expression "windows && (x86 || x64)" possibly. Or people think it is EM64 intead of x64. And so on.

To solve this, it would be great if Jenkins would know some default tokens. That means, Jenkins shall check the slave and assign non-removable tokens inherently, that can be used just as custom labels.


  • If it is a Windows machine, it should be auto-labelled with the tag "windows".

  • If it is a Linux machine, it should be auto-labelled with the tag "linux".

  • If it is a x86 machine, it should be auto-labelled with the tag "x86".

  • If it is a x64 machine, it should be auto-labelled with the tag "x64".

Also, it would be cool if the suggestions popping up would not only contain single tags, but at the same momen suggest the most useful completions like "windows && (x86 || x64)".

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.