Skip to content

The Unified and Autonomous Development Platform

chore: Bump dependency version

Robin Shen8d044f28e93a
diff --git a/pom.xml b/pom.xml
index b6ece3c92f..4bd6e9e840 100644
--- a/pom.xml
+++ b/pom.xml
@@ -677,7 +677,7 @@
</repositories>
<properties>
<commons.version>3.2.8</commons.version>
- <agent.version>2.4.11</agent.version>
+ <agent.version>2.4.12</agent.version>
<slf4j.version>2.0.9</slf4j.version>
<logback.version>1.4.14</logback.version>
<antlr.version>4.7.2</antlr.version>
diff --git a/server-core/src/main/java/io/onedev/server/model/Workspace.java b/server-core/src/main/java/io/onedev/server/model/Workspace.java
index a97deae09b..f4c3aa1546 100644
--- a/server-core/src/main/java/io/onedev/server/model/Workspace.java
+++ b/server-core/src/main/java/io/onedev/server/model/Workspace.java
@@ -29,7 +29,6 @@ import org.jspecify.annotations.Nullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.collect.Lists;
-import io.onedev.commons.utils.ExplicitException;
import io.onedev.server.OneDev;
import io.onedev.server.cluster.ClusterService;
import io.onedev.server.entityreference.WorkspaceReference;
@@ -296,7 +295,7 @@ public class Workspace extends AbstractEntity {
var spec = getSpec();
if (spec == null)
- throw new ExplicitException("Spec not found in workspace project hierarchy");
+ return maskSecrets;
for (var envVar: spec.getEnvVars()) {
if (envVar.isSecret())
diff --git a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/ClaudeCode.java b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/ClaudeCode.java
index d2277ccc7a..bc166b9970 100644
--- a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/ClaudeCode.java
+++ b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/ClaudeCode.java
@@ -12,7 +12,6 @@ import io.onedev.server.web.util.SuggestionUtils;
Create a workspace spec running Claude Code directly with server shell environment.
To use spec created by this template, please ensure that:
<ul>
- <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>
<li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>
<li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>
</ul>""")
diff --git a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/Codex.java b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/Codex.java
index 5b4231d704..f69b8f57d4 100644
--- a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/Codex.java
+++ b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/Codex.java
@@ -12,7 +12,6 @@ import io.onedev.server.web.util.SuggestionUtils;
Create a workspace spec running Codex directly with server shell environment.
To use spec created by this template, please ensure that:
<ul>
- <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>
<li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>
<li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>
</ul>""")
diff --git a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/OpenCode.java b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/OpenCode.java
index 78e64a3c91..0c35bbe176 100644
--- a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/OpenCode.java
+++ b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/OpenCode.java
@@ -12,7 +12,6 @@ import io.onedev.server.web.util.SuggestionUtils;
Create a workspace spec running Open Code directly with server shell environment.
To use spec created by this template, please ensure that:
<ul>
- <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>
<li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>
<li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>
</ul>""")
diff --git a/server-core/src/main/java/io/onedev/server/web/component/taskbutton/TestButton.java b/server-core/src/main/java/io/onedev/server/web/component/taskbutton/TestButton.java
index 800917078e..9cfdd58128 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/taskbutton/TestButton.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/taskbutton/TestButton.java
@@ -92,7 +92,7 @@ public abstract class TestButton extends TaskButton {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
if (editor.isValid()) {
- if (testData != null) {
+ if (testData != null && !(testData instanceof Testable.None)) {
String title = EditableUtils.getDisplayName(testData.getClass());
new BeanEditModalPanel<Serializable>(target, testData, Sets.newHashSet(), true, title) {
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_de.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_de.java
index e7e91056a8..db689cc835 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_de.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_de.java
@@ -911,12 +911,18 @@ public class Translation_de extends TranslationResourceBundle {
m.put("Create User", "Erstelle Benutzer");
m.put("Create Workspace", "Arbeitsbereich erstellen");
m.put("Create Workspace Spec", "Arbeitsbereichs-Spec erstellen");
- m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Erstellen Sie eine Arbeitsbereichsspezifikation, die Claude Code direkt mit der Servershell-Umgebung ausführt.\nUm die von dieser Vorlage erstellte Spezifikation zu verwenden, stellen Sie bitte sicher, dass:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> auf dem OneDev-Server installiert ist</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> auf dem OneDev-Server installiert ist</li>\n <li>Ein Shell-Provisioner in 'Administration / Workspace Provisioners' hinzugefügt wurde, mit korrekt konfigurierten 'anwendbaren Projekten'</li>\n</ul>");
- m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Erstellen Sie eine Arbeitsbereichsspezifikation, die Codex direkt mit der Servershell-Umgebung ausführt.\nUm die von dieser Vorlage erstellte Spezifikation zu verwenden, stellen Sie bitte sicher, dass:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> auf dem OneDev-Server installiert ist</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> auf dem OneDev-Server installiert ist</li>\n <li>Ein Shell-Provisioner in 'Administration / Workspace Provisioners' hinzugefügt wurde, mit korrekt konfigurierten 'anwendbaren Projekten'</li>\n</ul>");
- m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Erstellen Sie eine Arbeitsbereichsspezifikation, die Open Code direkt mit der Servershell-Umgebung ausführt.\nUm die von dieser Vorlage erstellte Spezifikation zu verwenden, stellen Sie bitte sicher, dass:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> auf dem OneDev-Server installiert ist</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> auf dem OneDev-Server installiert ist</li>\n <li>Ein Shell-Provisioner in 'Administration / Workspace Provisioners' hinzugefügt wurde, mit korrekt konfigurierten 'anwendbaren Projekten'</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Erstellen Sie eine Arbeitsbereichsspezifikation, die Claude Code direkt mit der Server-Shell-Umgebung ausführt.\nUm die durch diese Vorlage erstellte Spezifikation zu verwenden, stellen Sie bitte sicher, dass:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> auf dem OneDev-Server installiert ist</li>\n <li>Ein Shell-Provisioner in 'Administration / Workspace Provisioners' hinzugefügt wurde, mit korrekt konfigurierten 'anwendbaren Projekten'</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Erstellen Sie eine Arbeitsbereichsspezifikation, die Claude Code in einem Container für Isolations- und Sicherheitszwecke ausführt.\nSie können das <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>Container-Image</a>\nspäter anpassen, um Ihren Bedürfnissen gerecht zu werden, falls gewünscht.\n<b class='text-info'>HINWEIS: </b> Das Erstellen eines Arbeitsbereichs im Container erfordert ein Enterprise-Abonnement.\n<a href='https://onedev.io/pricing' target='_blank'>30 Tage kostenlos testen</a>");
+ m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Erstellen Sie eine Arbeitsbereichsspezifikation, die Codex direkt mit der Server-Shell-Umgebung ausführt.\nUm die durch diese Vorlage erstellte Spezifikation zu verwenden, stellen Sie bitte sicher, dass:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> auf dem OneDev-Server installiert ist</li>\n <li>Ein Shell-Provisioner in 'Administration / Workspace Provisioners' hinzugefügt wurde, mit korrekt konfigurierten 'anwendbaren Projekten'</li>\n</ul>");
+ m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Erstellen Sie eine Arbeitsbereichsspezifikation, die Codex in einem Container für Isolations- und Sicherheitszwecke ausführt.\nSie können das <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>Container-Image</a>\nspäter anpassen, um Ihren Bedürfnissen gerecht zu werden, falls gewünscht.\n<b class='text-info'>HINWEIS: </b> Das Erstellen eines Arbeitsbereichs im Container erfordert ein Enterprise-Abonnement.\n<a href='https://onedev.io/pricing' target='_blank'>30 Tage kostenlos testen</a>");
+ m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Erstellen Sie eine Arbeitsbereichsspezifikation, die Open Code direkt mit der Server-Shell-Umgebung ausführt.\nUm die durch diese Vorlage erstellte Spezifikation zu verwenden, stellen Sie bitte sicher, dass:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> auf dem OneDev-Server installiert ist</li>\n <li>Ein Shell-Provisioner in 'Administration / Workspace Provisioners' hinzugefügt wurde, mit korrekt konfigurierten 'anwendbaren Projekten'</li>\n</ul>");
+ m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Erstellen Sie eine Arbeitsbereichsspezifikation, die Open Code in einem Container für Isolations- und Sicherheitszwecke ausführt.\nSie können das <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>Container-Image</a>\nspäter anpassen, um Ihren Bedürfnissen gerecht zu werden, falls gewünscht.\n<b class='text-info'>HINWEIS: </b> Das Erstellen eines Arbeitsbereichs im Container erfordert ein Enterprise-Abonnement.\n<a href='https://onedev.io/pricing' target='_blank'>30 Tage kostenlos testen</a>");
m.put("Create body", "Erstelle Inhalt");
m.put("Create branch <b>{0}</b> from {1}", "Erstelle Branch <b>{0}</b> von {1}");
m.put("Create child projects under a project", "Erstelle Unterprojekte unter einem Projekt");
@@ -2498,6 +2504,8 @@ public class Translation_de extends TranslationResourceBundle {
"Optional geben Sie <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_pull.md' target='_blank'>zusätzliche Optionen</a> von Crane an");
m.put("Optionally specify <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>additional options</a> of crane",
"Optional geben Sie <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>zusätzliche Optionen</a> von Crane an");
+ m.put("Optionally specify <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> executable,\nfor instance <i>/usr/local/bin/tmux</i>. Leave empty to use tmux executable in PATH",
+ "Optional <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>-Ausführungsdatei angeben,\nzum Beispiel <i>/usr/local/bin/tmux</i>. Leer lassen, um die tmux-Ausführungsdatei im PATH zu verwenden");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to build, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to build for platform of the node running the job",
"Optional geben Sie <span class='text-info'>kommagetrennte</span> Plattformen zum Erstellen an, beispielsweise <tt>linux/amd64,linux/arm64</tt>. Lassen Sie das Feld leer, um die Plattform des Knotens zu verwenden, der den Job ausführt");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to scan, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to scan all platforms in OCI layout",
@@ -4237,8 +4245,8 @@ public class Translation_de extends TranslationResourceBundle {
m.put("This permission enables one to access confidential issues", "Diese Berechtigung ermöglicht den Zugriff auf vertrauliche Issues");
m.put("This permission enables one to schedule issues into iterations", "Diese Berechtigung ermöglicht das Planen von Issues in Iterationen");
m.put("This property is imported from {0}", "Diese Eigenschaft wird aus {0} importiert");
- m.put("This provisioner creates workspaces with OneDev server's shell facility, and it requires\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
- "Dieser Provisioner erstellt Arbeitsbereiche mit der Shell-Funktionalität des OneDev-Servers, und er erfordert\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>, um auf dem OneDev-Server installiert zu sein<br>\n<b class='text-danger'>WARNUNG</b>: Arbeitsbereiche, die von diesem Provisioner erstellt werden, haben dieselben\nBerechtigungen wie der OneDev-Server-Prozess. Stellen Sie sicher, dass er nur von vertrauenswürdigen Projekten verwendet werden kann.\n");
+ m.put("This provisioner creates workspaces with OneDev server's shell facility, and requires\ntmux to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
+ "Dieser Provisioner erstellt Arbeitsbereiche mit der Shell-Funktion des OneDev-Servers und erfordert\ndass tmux auf dem OneDev-Server installiert ist<br>\n<b class='text-danger'>WARNUNG</b>: Arbeitsbereiche, die von diesem Provisioner erstellt werden, haben dieselben\nBerechtigungen wie der OneDev-Serverprozess. Stellen Sie sicher, dass er nur von vertrauenswürdigen Projekten verwendet werden kann.\n");
m.put("This pull request has been discarded", "Dieser Pull-Request wurde verworfen");
m.put("This report will be displayed in pull request overview page if build is triggered by pull request",
"Dieser Bericht wird auf der Übersichtsseite des Pull-Requests angezeigt, wenn der Build durch den Pull-Request ausgelöst wird");
@@ -4938,6 +4946,7 @@ public class Translation_de extends TranslationResourceBundle {
m.put("tags", "Tags");
m.put("the url to set up user account", "die URL zur Einrichtung eines Benutzerkontos");
m.put("time aggregation link", "Link zur Zeitaggregation");
+ m.put("tmux Executable", "tmux Ausführbare Datei");
m.put("touching specified path", "Berühren des angegebenen Pfads");
m.put("transit manually by any user", "manuell durch jeden Benutzer übertragen");
m.put("transit manually by any user of roles \"{0}\"", "manuell durch jeden Benutzer mit Rollen \"{0}\" übertragen");
@@ -4994,12 +5003,6 @@ public class Translation_de extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Erstellen Sie eine Arbeitsbereichsspezifikation, die Claude Code in einem Container für Isolations- und Sicherheitszwecke ausführt.\nSie können das <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>Container-Image</a>\nspäter anpassen, um Ihren Bedürfnissen gerecht zu werden, falls gewünscht.\n<b class='text-info'>HINWEIS: </b> Das Erstellen eines Arbeitsbereichs im Container erfordert ein Enterprise-Abonnement.\n<a href='https://onedev.io/pricing' target='_blank'>30 Tage kostenlos testen</a>");
- m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Erstellen Sie eine Arbeitsbereichsspezifikation, die Codex in einem Container für Isolations- und Sicherheitszwecke ausführt.\nSie können das <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>Container-Image</a>\nspäter anpassen, um Ihren Bedürfnissen gerecht zu werden, falls gewünscht.\n<b class='text-info'>HINWEIS: </b> Das Erstellen eines Arbeitsbereichs im Container erfordert ein Enterprise-Abonnement.\n<a href='https://onedev.io/pricing' target='_blank'>30 Tage kostenlos testen</a>");
- m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Erstellen Sie eine Arbeitsbereichsspezifikation, die Open Code in einem Container für Isolations- und Sicherheitszwecke ausführt.\nSie können das <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>Container-Image</a>\nspäter anpassen, um Ihren Bedürfnissen gerecht zu werden, falls gewünscht.\n<b class='text-info'>HINWEIS: </b> Das Erstellen eines Arbeitsbereichs im Container erfordert ein Enterprise-Abonnement.\n<a href='https://onedev.io/pricing' target='_blank'>30 Tage kostenlos testen</a>");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_es.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_es.java
index bda2462618..58b42fca87 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_es.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_es.java
@@ -911,12 +911,18 @@ public class Translation_es extends TranslationResourceBundle {
m.put("Create User", "Crear usuario");
m.put("Create Workspace", "Crear Espacio de Trabajo");
m.put("Create Workspace Spec", "Crear Especificación de Espacio de Trabajo");
- m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Cree una especificación de espacio de trabajo ejecutando Claude Code directamente con el entorno de shell del servidor.\nPara usar la especificación creada por esta plantilla, asegúrese de que:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> esté instalado en el servidor OneDev</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> esté instalado en el servidor OneDev</li>\n <li>Se haya agregado un aprovisionador de shell en 'Administración / Aprovisionadores de Espacio de Trabajo' con 'proyectos aplicables' configurados correctamente</li>\n</ul>");
- m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Cree una especificación de espacio de trabajo ejecutando Codex directamente con el entorno de shell del servidor.\nPara usar la especificación creada por esta plantilla, asegúrese de que:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> esté instalado en el servidor OneDev</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> esté instalado en el servidor OneDev</li>\n <li>Se haya agregado un aprovisionador de shell en 'Administración / Aprovisionadores de Espacio de Trabajo' con 'proyectos aplicables' configurados correctamente</li>\n</ul>");
- m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Cree una especificación de espacio de trabajo ejecutando Open Code directamente con el entorno de shell del servidor.\nPara usar la especificación creada por esta plantilla, asegúrese de que:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> esté instalado en el servidor OneDev</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> esté instalado en el servidor OneDev</li>\n <li>Se haya agregado un aprovisionador de shell en 'Administración / Aprovisionadores de Espacio de Trabajo' con 'proyectos aplicables' configurados correctamente</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Crea una especificación de espacio de trabajo ejecutando Claude Code directamente con el entorno de shell del servidor.\nPara usar la especificación creada por esta plantilla, asegúrate de que:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> esté instalado en el servidor OneDev</li>\n <li>Se haya añadido un aprovisionador de shell en 'Administración / Aprovisionadores de Espacio de Trabajo' con 'proyectos aplicables' configurados correctamente</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Crea una especificación de espacio de trabajo ejecutando Claude Code dentro de un contenedor para propósitos de aislamiento y seguridad.\nPuedes personalizar la <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>imagen del contenedor</a>\nmás tarde para adaptarla a tus necesidades si lo deseas.\n<b class='text-info'>NOTA: </b> Crear un espacio de trabajo dentro de un contenedor requiere una suscripción empresarial.\n<a href='https://onedev.io/pricing' target='_blank'>Prueba gratis</a> por 30 días");
+ m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Crea una especificación de espacio de trabajo ejecutando Codex directamente con el entorno de shell del servidor.\nPara usar la especificación creada por esta plantilla, asegúrate de que:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> esté instalado en el servidor OneDev</li>\n <li>Se haya añadido un aprovisionador de shell en 'Administración / Aprovisionadores de Espacio de Trabajo' con 'proyectos aplicables' configurados correctamente</li>\n</ul>");
+ m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Crea una especificación de espacio de trabajo ejecutando Codex dentro de un contenedor para propósitos de aislamiento y seguridad.\nPuedes personalizar la <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>imagen del contenedor</a>\nmás tarde para adaptarla a tus necesidades si lo deseas.\n<b class='text-info'>NOTA: </b> Crear un espacio de trabajo dentro de un contenedor requiere una suscripción empresarial.\n<a href='https://onedev.io/pricing' target='_blank'>Prueba gratis</a> por 30 días");
+ m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Crea una especificación de espacio de trabajo ejecutando Open Code directamente con el entorno de shell del servidor.\nPara usar la especificación creada por esta plantilla, asegúrate de que:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> esté instalado en el servidor OneDev</li>\n <li>Se haya añadido un aprovisionador de shell en 'Administración / Aprovisionadores de Espacio de Trabajo' con 'proyectos aplicables' configurados correctamente</li>\n</ul>");
+ m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Crea una especificación de espacio de trabajo ejecutando Open Code dentro de un contenedor para propósitos de aislamiento y seguridad.\nPuedes personalizar la <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>imagen del contenedor</a>\nmás tarde para adaptarla a tus necesidades si lo deseas.\n<b class='text-info'>NOTA: </b> Crear un espacio de trabajo dentro de un contenedor requiere una suscripción empresarial.\n<a href='https://onedev.io/pricing' target='_blank'>Prueba gratis</a> por 30 días");
m.put("Create body", "Crear cuerpo");
m.put("Create branch <b>{0}</b> from {1}", "Crear rama <b>{0}</b> desde {1}");
m.put("Create child projects under a project", "Crear proyectos secundarios dentro de un proyecto");
@@ -2498,6 +2504,8 @@ public class Translation_es extends TranslationResourceBundle {
"Opcionalmente especifique <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_pull.md' target='_blank'>opciones adicionales</a> de crane.");
m.put("Optionally specify <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>additional options</a> of crane",
"Opcionalmente especifique <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>opciones adicionales</a> de crane.");
+ m.put("Optionally specify <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> executable,\nfor instance <i>/usr/local/bin/tmux</i>. Leave empty to use tmux executable in PATH",
+ "Opcionalmente especifica el ejecutable de <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>,\npor ejemplo <i>/usr/local/bin/tmux</i>. Déjalo vacío para usar el ejecutable de tmux en PATH");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to build, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to build for platform of the node running the job",
"Opcionalmente especifique <span class='text-info'>plataformas separadas por comas</span> para construir, por ejemplo <tt>linux/amd64,linux/arm64</tt>. Déjelo vacío para construir en la plataforma del nodo que ejecuta el trabajo.");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to scan, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to scan all platforms in OCI layout",
@@ -4237,8 +4245,8 @@ public class Translation_es extends TranslationResourceBundle {
m.put("This permission enables one to access confidential issues", "Este permiso permite acceder a problemas confidenciales");
m.put("This permission enables one to schedule issues into iterations", "Este permiso permite programar problemas en iteraciones");
m.put("This property is imported from {0}", "Esta propiedad se importa desde {0}");
- m.put("This provisioner creates workspaces with OneDev server's shell facility, and it requires\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
- "Este aprovisionador crea espacios de trabajo con la facilidad de shell del servidor OneDev, y requiere\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> para estar instalado en el servidor OneDev<br>\n<b class='text-danger'>ADVERTENCIA</b>: Los espacios de trabajo creados por este aprovisionador tienen el mismo\npermiso que el proceso del servidor OneDev. Asegúrese de que solo pueda ser usado por proyectos de confianza.\n");
+ m.put("This provisioner creates workspaces with OneDev server's shell facility, and requires\ntmux to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
+ "Este aprovisionador crea espacios de trabajo con la facilidad de shell del servidor OneDev, y requiere\nque tmux esté instalado en el servidor OneDev<br>\n<b class='text-danger'>ADVERTENCIA</b>: Los espacios de trabajo creados por este aprovisionador tienen la misma\npermiso que el proceso del servidor OneDev. Asegúrate de que solo pueda ser utilizado por proyectos de confianza.\n");
m.put("This pull request has been discarded", "Esta solicitud de extracción ha sido descartada");
m.put("This report will be displayed in pull request overview page if build is triggered by pull request",
"Este informe se mostrará en la página de resumen de la solicitud de extracción si la construcción es activada por una solicitud de extracción");
@@ -4938,6 +4946,7 @@ public class Translation_es extends TranslationResourceBundle {
m.put("tags", "etiquetas");
m.put("the url to set up user account", "la URL para configurar la cuenta de usuario");
m.put("time aggregation link", "enlace de agregación de tiempo");
+ m.put("tmux Executable", "Ejecutable de tmux");
m.put("touching specified path", "tocando la ruta especificada");
m.put("transit manually by any user", "transitar manualmente por cualquier usuario");
m.put("transit manually by any user of roles \"{0}\"", "transitar manualmente por cualquier usuario de roles \"{0}\"");
@@ -4994,12 +5003,6 @@ public class Translation_es extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Crea una especificación de espacio de trabajo ejecutando Claude Code dentro de un contenedor para propósitos de aislamiento y seguridad.\nPuedes personalizar la <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>imagen del contenedor</a>\nmás tarde para adaptarla a tus necesidades si lo deseas.\n<b class='text-info'>NOTA: </b> Crear un espacio de trabajo dentro de un contenedor requiere una suscripción empresarial.\n<a href='https://onedev.io/pricing' target='_blank'>Prueba gratis</a> por 30 días");
- m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Crea una especificación de espacio de trabajo ejecutando Codex dentro de un contenedor para propósitos de aislamiento y seguridad.\nPuedes personalizar la <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>imagen del contenedor</a>\nmás tarde para adaptarla a tus necesidades si lo deseas.\n<b class='text-info'>NOTA: </b> Crear un espacio de trabajo dentro de un contenedor requiere una suscripción empresarial.\n<a href='https://onedev.io/pricing' target='_blank'>Prueba gratis</a> por 30 días");
- m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Crea una especificación de espacio de trabajo ejecutando Open Code dentro de un contenedor para propósitos de aislamiento y seguridad.\nPuedes personalizar la <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>imagen del contenedor</a>\nmás tarde para adaptarla a tus necesidades si lo deseas.\n<b class='text-info'>NOTA: </b> Crear un espacio de trabajo dentro de un contenedor requiere una suscripción empresarial.\n<a href='https://onedev.io/pricing' target='_blank'>Prueba gratis</a> por 30 días");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_fr.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_fr.java
index 6d72b39f30..63ea7d0d6e 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_fr.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_fr.java
@@ -911,12 +911,18 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("Create User", "Créer un utilisateur");
m.put("Create Workspace", "Créer un espace de travail");
m.put("Create Workspace Spec", "Créer une spécification d'espace de travail");
- m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Créer une spécification d'espace de travail exécutant Claude Code directement avec l'environnement shell du serveur.\nPour utiliser la spécification créée par ce modèle, veuillez vous assurer que :\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> est installé sur le serveur OneDev</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> est installé sur le serveur OneDev</li>\n <li>Un provisionneur de shell est ajouté dans 'Administration / Provisionneurs d'espaces de travail' avec les 'projets applicables' correctement configurés</li>\n</ul>");
- m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Créer une spécification d'espace de travail exécutant Codex directement avec l'environnement shell du serveur.\nPour utiliser la spécification créée par ce modèle, veuillez vous assurer que :\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> est installé sur le serveur OneDev</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> est installé sur le serveur OneDev</li>\n <li>Un provisionneur de shell est ajouté dans 'Administration / Provisionneurs d'espaces de travail' avec les 'projets applicables' correctement configurés</li>\n</ul>");
- m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Créer une spécification d'espace de travail exécutant Open Code directement avec l'environnement shell du serveur.\nPour utiliser la spécification créée par ce modèle, veuillez vous assurer que :\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> est installé sur le serveur OneDev</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> est installé sur le serveur OneDev</li>\n <li>Un provisionneur de shell est ajouté dans 'Administration / Provisionneurs d'espaces de travail' avec les 'projets applicables' correctement configurés</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Créer une spécification d'espace de travail exécutant Claude Code directement avec l'environnement shell du serveur.\nPour utiliser la spécification créée par ce modèle, veuillez vous assurer que :\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> est installé sur le serveur OneDev</li>\n <li>Un provisionneur de shell est ajouté dans 'Administration / Provisionneurs d'Espace de Travail' avec les 'projets applicables' configurés correctement</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Créez une spécification d'espace de travail exécutant Claude Code à l'intérieur d'un conteneur pour des raisons d'isolation et de sécurité.\nVous pouvez personnaliser l'<a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>image du conteneur</a>\nplus tard pour répondre à vos besoins si vous le souhaitez.\n<b class='text-info'>REMARQUE : </b> La création d'un espace de travail à l'intérieur d'un conteneur nécessite un abonnement entreprise.\n<a href='https://onedev.io/pricing' target='_blank'>Essayez gratuitement</a> pendant 30 jours");
+ m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Créer une spécification d'espace de travail exécutant Codex directement avec l'environnement shell du serveur.\nPour utiliser la spécification créée par ce modèle, veuillez vous assurer que :\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> est installé sur le serveur OneDev</li>\n <li>Un provisionneur de shell est ajouté dans 'Administration / Provisionneurs d'Espace de Travail' avec les 'projets applicables' configurés correctement</li>\n</ul>");
+ m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Créez une spécification d'espace de travail exécutant Codex à l'intérieur d'un conteneur pour des raisons d'isolation et de sécurité.\nVous pouvez personnaliser l'<a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>image du conteneur</a>\nplus tard pour répondre à vos besoins si vous le souhaitez.\n<b class='text-info'>REMARQUE : </b> La création d'un espace de travail à l'intérieur d'un conteneur nécessite un abonnement entreprise.\n<a href='https://onedev.io/pricing' target='_blank'>Essayez gratuitement</a> pendant 30 jours");
+ m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Créer une spécification d'espace de travail exécutant Open Code directement avec l'environnement shell du serveur.\nPour utiliser la spécification créée par ce modèle, veuillez vous assurer que :\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> est installé sur le serveur OneDev</li>\n <li>Un provisionneur de shell est ajouté dans 'Administration / Provisionneurs d'Espace de Travail' avec les 'projets applicables' configurés correctement</li>\n</ul>");
+ m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Créez une spécification d'espace de travail exécutant Open Code à l'intérieur d'un conteneur pour des raisons d'isolation et de sécurité.\nVous pouvez personnaliser l'<a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>image du conteneur</a>\nplus tard pour répondre à vos besoins si vous le souhaitez.\n<b class='text-info'>REMARQUE : </b> La création d'un espace de travail à l'intérieur d'un conteneur nécessite un abonnement entreprise.\n<a href='https://onedev.io/pricing' target='_blank'>Essayez gratuitement</a> pendant 30 jours");
m.put("Create body", "Créer le corps");
m.put("Create branch <b>{0}</b> from {1}", "Créer une branche <b>{0}</b> à partir de {1}");
m.put("Create child projects under a project", "Créer des projets enfants sous un projet");
@@ -2498,6 +2504,8 @@ public class Translation_fr extends TranslationResourceBundle {
"Spécifiez éventuellement des <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_pull.md' target='_blank'>options supplémentaires</a> pour crane.");
m.put("Optionally specify <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>additional options</a> of crane",
"Spécifiez éventuellement des <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>options supplémentaires</a> pour crane.");
+ m.put("Optionally specify <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> executable,\nfor instance <i>/usr/local/bin/tmux</i>. Leave empty to use tmux executable in PATH",
+ "Spécifiez éventuellement l'exécutable <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>,\npar exemple <i>/usr/local/bin/tmux</i>. Laissez vide pour utiliser l'exécutable tmux dans le PATH");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to build, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to build for platform of the node running the job",
"Spécifiez éventuellement des <span class='text-info'>plateformes séparées par des virgules</span> à construire, par exemple <tt>linux/amd64,linux/arm64</tt>. Laissez vide pour construire pour la plateforme du nœud exécutant la tâche.");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to scan, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to scan all platforms in OCI layout",
@@ -4237,8 +4245,8 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("This permission enables one to access confidential issues", "Cette permission permet d'accéder aux problèmes confidentiels");
m.put("This permission enables one to schedule issues into iterations", "Cette permission permet de planifier des problèmes dans des itérations");
m.put("This property is imported from {0}", "Cette propriété est importée de {0}");
- m.put("This provisioner creates workspaces with OneDev server's shell facility, and it requires\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
- "Ce provisionneur crée des espaces de travail avec la fonctionnalité de shell du serveur OneDev, et il nécessite\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> pour être installé sur le serveur OneDev<br>\n<b class='text-danger'>AVERTISSEMENT</b> : Les espaces de travail créés par ce provisionneur ont les mêmes\npermissions que le processus du serveur OneDev. Assurez-vous qu'il ne peut être utilisé que par des projets de confiance.\n");
+ m.put("This provisioner creates workspaces with OneDev server's shell facility, and requires\ntmux to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
+ "Ce provisionneur crée des espaces de travail avec la fonctionnalité shell du serveur OneDev, et nécessite\nque tmux soit installé sur le serveur OneDev<br>\n<b class='text-danger'>AVERTISSEMENT</b> : Les espaces de travail créés par ce provisionneur ont les mêmes\npermissions que le processus du serveur OneDev. Assurez-vous qu'il ne peut être utilisé que par des projets de confiance.\n");
m.put("This pull request has been discarded", "Cette demande de tirage a été abandonnée");
m.put("This report will be displayed in pull request overview page if build is triggered by pull request",
"Ce rapport sera affiché sur la page d'aperçu des demandes de tirage si la construction est déclenchée par une demande de tirage");
@@ -4938,6 +4946,7 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("tags", "tags");
m.put("the url to set up user account", "l'URL pour configurer le compte utilisateur");
m.put("time aggregation link", "lien d'agrégation temporelle");
+ m.put("tmux Executable", "Exécutable tmux");
m.put("touching specified path", "accéder au chemin spécifié");
m.put("transit manually by any user", "transiter manuellement par tout utilisateur");
m.put("transit manually by any user of roles \"{0}\"", "transiter manuellement par tout utilisateur des rôles \"{0}\"");
@@ -4994,12 +5003,6 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Créez une spécification d'espace de travail exécutant Claude Code à l'intérieur d'un conteneur pour des raisons d'isolation et de sécurité.\nVous pouvez personnaliser l'<a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>image du conteneur</a>\nplus tard pour répondre à vos besoins si vous le souhaitez.\n<b class='text-info'>REMARQUE : </b> La création d'un espace de travail à l'intérieur d'un conteneur nécessite un abonnement entreprise.\n<a href='https://onedev.io/pricing' target='_blank'>Essayez gratuitement</a> pendant 30 jours");
- m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Créez une spécification d'espace de travail exécutant Codex à l'intérieur d'un conteneur pour des raisons d'isolation et de sécurité.\nVous pouvez personnaliser l'<a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>image du conteneur</a>\nplus tard pour répondre à vos besoins si vous le souhaitez.\n<b class='text-info'>REMARQUE : </b> La création d'un espace de travail à l'intérieur d'un conteneur nécessite un abonnement entreprise.\n<a href='https://onedev.io/pricing' target='_blank'>Essayez gratuitement</a> pendant 30 jours");
- m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Créez une spécification d'espace de travail exécutant Open Code à l'intérieur d'un conteneur pour des raisons d'isolation et de sécurité.\nVous pouvez personnaliser l'<a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>image du conteneur</a>\nplus tard pour répondre à vos besoins si vous le souhaitez.\n<b class='text-info'>REMARQUE : </b> La création d'un espace de travail à l'intérieur d'un conteneur nécessite un abonnement entreprise.\n<a href='https://onedev.io/pricing' target='_blank'>Essayez gratuitement</a> pendant 30 jours");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_it.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_it.java
index e589ed3787..0e3b3546e7 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_it.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_it.java
@@ -911,12 +911,18 @@ public class Translation_it extends TranslationResourceBundle {
m.put("Create User", "Crea Utente");
m.put("Create Workspace", "Crea Workspace");
m.put("Create Workspace Spec", "Crea Specifica Workspace");
- m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Crea una specifica dell'ambiente di lavoro eseguendo Claude Code direttamente con l'ambiente shell del server.\nPer utilizzare la specifica creata da questo modello, assicurati che:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> sia installato sul server OneDev</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> sia installato sul server OneDev</li>\n <li>Un provisioner shell sia aggiunto in 'Amministrazione / Provisioner dell'ambiente di lavoro' con 'progetti applicabili' configurati correttamente</li>\n</ul>");
- m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Crea una specifica dell'ambiente di lavoro eseguendo Codex direttamente con l'ambiente shell del server.\nPer utilizzare la specifica creata da questo modello, assicurati che:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> sia installato sul server OneDev</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> sia installato sul server OneDev</li>\n <li>Un provisioner shell sia aggiunto in 'Amministrazione / Provisioner dell'ambiente di lavoro' con 'progetti applicabili' configurati correttamente</li>\n</ul>");
- m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Crea una specifica dell'ambiente di lavoro eseguendo Open Code direttamente con l'ambiente shell del server.\nPer utilizzare la specifica creata da questo modello, assicurati che:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> sia installato sul server OneDev</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> sia installato sul server OneDev</li>\n <li>Un provisioner shell sia aggiunto in 'Amministrazione / Provisioner dell'ambiente di lavoro' con 'progetti applicabili' configurati correttamente</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Crea una specifica di workspace eseguendo Claude Code direttamente con l'ambiente shell del server.\nPer utilizzare la specifica creata da questo modello, assicurati che:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> sia installato sul server OneDev</li>\n <li>Un provisioner shell sia aggiunto in 'Amministrazione / Provisioner di Workspace' con 'progetti applicabili' configurati correttamente</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Crea una specifica di workspace eseguendo Claude Code all'interno di un container per scopi di isolamento e sicurezza.\nPuoi personalizzare l'<a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>immagine del container</a>\nsuccessivamente per soddisfare le tue esigenze, se desiderato.\n<b class='text-info'>NOTA: </b> Creare un workspace all'interno di un container richiede un abbonamento enterprise.\n<a href='https://onedev.io/pricing' target='_blank'>Prova gratis</a> per 30 giorni");
+ m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Crea una specifica di workspace eseguendo Codex direttamente con l'ambiente shell del server.\nPer utilizzare la specifica creata da questo modello, assicurati che:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> sia installato sul server OneDev</li>\n <li>Un provisioner shell sia aggiunto in 'Amministrazione / Provisioner di Workspace' con 'progetti applicabili' configurati correttamente</li>\n</ul>");
+ m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Crea una specifica di workspace eseguendo Codex all'interno di un container per scopi di isolamento e sicurezza.\nPuoi personalizzare l'<a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>immagine del container</a>\nsuccessivamente per soddisfare le tue esigenze, se desiderato.\n<b class='text-info'>NOTA: </b> Creare un workspace all'interno di un container richiede un abbonamento enterprise.\n<a href='https://onedev.io/pricing' target='_blank'>Prova gratis</a> per 30 giorni");
+ m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Crea una specifica di workspace eseguendo Open Code direttamente con l'ambiente shell del server.\nPer utilizzare la specifica creata da questo modello, assicurati che:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> sia installato sul server OneDev</li>\n <li>Un provisioner shell sia aggiunto in 'Amministrazione / Provisioner di Workspace' con 'progetti applicabili' configurati correttamente</li>\n</ul>");
+ m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Crea una specifica di workspace eseguendo Open Code all'interno di un container per scopi di isolamento e sicurezza.\nPuoi personalizzare l'<a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>immagine del container</a>\nsuccessivamente per soddisfare le tue esigenze, se desiderato.\n<b class='text-info'>NOTA: </b> Creare un workspace all'interno di un container richiede un abbonamento enterprise.\n<a href='https://onedev.io/pricing' target='_blank'>Prova gratis</a> per 30 giorni");
m.put("Create body", "Crea corpo");
m.put("Create branch <b>{0}</b> from {1}", "Crea branch <b>{0}</b> da {1}");
m.put("Create child projects under a project", "Crea progetti figli sotto un progetto");
@@ -2498,6 +2504,8 @@ public class Translation_it extends TranslationResourceBundle {
"Specifica facoltativamente <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_pull.md' target='_blank'>opzioni aggiuntive</a> di crane");
m.put("Optionally specify <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>additional options</a> of crane",
"Specifica facoltativamente <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>opzioni aggiuntive</a> di crane");
+ m.put("Optionally specify <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> executable,\nfor instance <i>/usr/local/bin/tmux</i>. Leave empty to use tmux executable in PATH",
+ "Specifica facoltativamente l'eseguibile <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>,\nad esempio <i>/usr/local/bin/tmux</i>. Lascia vuoto per usare l'eseguibile tmux nel PATH");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to build, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to build for platform of the node running the job",
"Specifica facoltativamente <span class='text-info'>piattaforme separate da virgola</span> da costruire, ad esempio <tt>linux/amd64,linux/arm64</tt>. Lascia vuoto per costruire per la piattaforma del nodo che esegue il job");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to scan, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to scan all platforms in OCI layout",
@@ -4237,8 +4245,8 @@ public class Translation_it extends TranslationResourceBundle {
m.put("This permission enables one to access confidential issues", "Questo permesso consente di accedere ai problemi confidenziali");
m.put("This permission enables one to schedule issues into iterations", "Questo permesso consente di pianificare i problemi nelle iterazioni");
m.put("This property is imported from {0}", "Questa proprietà è importata da {0}");
- m.put("This provisioner creates workspaces with OneDev server's shell facility, and it requires\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
- "Questo provisioner crea ambienti di lavoro con la funzionalità shell del server OneDev e richiede\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> installato sul server OneDev<br>\n<b class='text-danger'>AVVERTIMENTO</b>: Gli ambienti di lavoro creati da questo provisioner hanno le stesse\nautorizzazioni del processo del server OneDev. Assicurati che possa essere utilizzato solo da progetti fidati.\n");
+ m.put("This provisioner creates workspaces with OneDev server's shell facility, and requires\ntmux to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
+ "Questo provisioner crea workspace con la funzionalità shell del server OneDev e richiede\nche tmux sia installato sul server OneDev<br>\n<b class='text-danger'>ATTENZIONE</b>: I workspace creati da questo provisioner hanno le stesse\nautorizzazioni del processo del server OneDev. Assicurati che possa essere utilizzato solo da progetti fidati.\n");
m.put("This pull request has been discarded", "Questa pull request è stata scartata");
m.put("This report will be displayed in pull request overview page if build is triggered by pull request",
"Questo report verrà visualizzato nella pagina di panoramica della pull request se la build è attivata dalla pull request");
@@ -4938,6 +4946,7 @@ public class Translation_it extends TranslationResourceBundle {
m.put("tags", "tag");
m.put("the url to set up user account", "l'URL per configurare l'account utente");
m.put("time aggregation link", "link di aggregazione temporale");
+ m.put("tmux Executable", "Eseguibile tmux");
m.put("touching specified path", "toccare il percorso specificato");
m.put("transit manually by any user", "transitare manualmente da qualsiasi utente");
m.put("transit manually by any user of roles \"{0}\"", "transitare manualmente da qualsiasi utente con ruoli \"{0}\"");
@@ -4994,12 +5003,6 @@ public class Translation_it extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Crea una specifica di workspace eseguendo Claude Code all'interno di un container per scopi di isolamento e sicurezza.\nPuoi personalizzare l'<a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>immagine del container</a>\nsuccessivamente per soddisfare le tue esigenze, se desiderato.\n<b class='text-info'>NOTA: </b> Creare un workspace all'interno di un container richiede un abbonamento enterprise.\n<a href='https://onedev.io/pricing' target='_blank'>Prova gratis</a> per 30 giorni");
- m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Crea una specifica di workspace eseguendo Codex all'interno di un container per scopi di isolamento e sicurezza.\nPuoi personalizzare l'<a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>immagine del container</a>\nsuccessivamente per soddisfare le tue esigenze, se desiderato.\n<b class='text-info'>NOTA: </b> Creare un workspace all'interno di un container richiede un abbonamento enterprise.\n<a href='https://onedev.io/pricing' target='_blank'>Prova gratis</a> per 30 giorni");
- m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Crea una specifica di workspace eseguendo Open Code all'interno di un container per scopi di isolamento e sicurezza.\nPuoi personalizzare l'<a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>immagine del container</a>\nsuccessivamente per soddisfare le tue esigenze, se desiderato.\n<b class='text-info'>NOTA: </b> Creare un workspace all'interno di un container richiede un abbonamento enterprise.\n<a href='https://onedev.io/pricing' target='_blank'>Prova gratis</a> per 30 giorni");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_ja.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_ja.java
index b92102d5f3..1aa5c30f87 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_ja.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_ja.java
@@ -911,12 +911,18 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("Create User", "ユーザーを作成");
m.put("Create Workspace", "ワークスペースを作成");
m.put("Create Workspace Spec", "ワークスペーススペックを作成");
- m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "サーバーシェル環境で直接Claude Codeを実行するワークスペーススペックを作成します。\nこのテンプレートで作成されたスペックを使用するには、以下を確認してください:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>がOneDevサーバーにインストールされていること</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a>がOneDevサーバーにインストールされていること</li>\n <li>'管理 / ワークスペースプロビジョナー'にシェルプロビジョナーが追加され、'適用可能なプロジェクト'が適切に設定されていること</li>\n</ul>");
- m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "サーバーシェル環境で直接Codexを実行するワークスペーススペックを作成します。\nこのテンプレートで作成されたスペックを使用するには、以下を確認してください:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>がOneDevサーバーにインストールされていること</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a>がOneDevサーバーにインストールされていること</li>\n <li>'管理 / ワークスペースプロビジョナー'にシェルプロビジョナーが追加され、'適用可能なプロジェクト'が適切に設定されていること</li>\n</ul>");
- m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "サーバーシェル環境で直接Open Codeを実行するワークスペーススペックを作成します。\nこのテンプレートで作成されたスペックを使用するには、以下を確認してください:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>がOneDevサーバーにインストールされていること</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a>がOneDevサーバーにインストールされていること</li>\n <li>'管理 / ワークスペースプロビジョナー'にシェルプロビジョナーが追加され、'適用可能なプロジェクト'が適切に設定されていること</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "サーバーシェル環境でClaude Codeを直接実行するワークスペックを作成します。\nこのテンプレートで作成されたスペックを使用するには、以下を確認してください:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a>がOneDevサーバーにインストールされている</li>\n <li>'Administration / Workspace Provisioners'にシェルプロビジョナーが追加され、'applicable projects'が適切に設定されている</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "コンテナ内でClaude Codeを実行するワークスペックを作成し、分離とセキュリティを確保します。\n必要に応じて<a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>コンテナイメージ</a>を後でカスタマイズできます。\n<b class='text-info'>注意: </b>コンテナ内でワークスペースを作成するには、エンタープライズサブスクリプションが必要です。\n<a href='https://onedev.io/pricing' target='_blank'>30日間無料でお試しください</a>");
+ m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "サーバーシェル環境でCodexを直接実行するワークスペックを作成します。\nこのテンプレートで作成されたスペックを使用するには、以下を確認してください:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a>がOneDevサーバーにインストールされている</li>\n <li>'Administration / Workspace Provisioners'にシェルプロビジョナーが追加され、'applicable projects'が適切に設定されている</li>\n</ul>");
+ m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "コンテナ内でCodexを実行するワークスペックを作成し、分離とセキュリティを確保します。\n必要に応じて<a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>コンテナイメージ</a>を後でカスタマイズできます。\n<b class='text-info'>注意: </b>コンテナ内でワークスペースを作成するには、エンタープライズサブスクリプションが必要です。\n<a href='https://onedev.io/pricing' target='_blank'>30日間無料でお試しください</a>");
+ m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "サーバーシェル環境でOpen Codeを直接実行するワークスペックを作成します。\nこのテンプレートで作成されたスペックを使用するには、以下を確認してください:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a>がOneDevサーバーにインストールされている</li>\n <li>'Administration / Workspace Provisioners'にシェルプロビジョナーが追加され、'applicable projects'が適切に設定されている</li>\n</ul>");
+ m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "コンテナ内でOpen Codeを実行するワークスペックを作成し、分離とセキュリティを確保します。\n必要に応じて<a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>コンテナイメージ</a>を後でカスタマイズできます。\n<b class='text-info'>注意: </b>コンテナ内でワークスペースを作成するには、エンタープライズサブスクリプションが必要です。\n<a href='https://onedev.io/pricing' target='_blank'>30日間無料でお試しください</a>");
m.put("Create body", "本文を作成");
m.put("Create branch <b>{0}</b> from {1}", "{1}から<b>{0}</b>ブランチを作成");
m.put("Create child projects under a project", "プロジェクト内に子プロジェクトを作成");
@@ -2498,6 +2504,8 @@ public class Translation_ja extends TranslationResourceBundle {
"オプションで、craneの<a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_pull.md' target='_blank'>追加オプション</a>を指定してください。");
m.put("Optionally specify <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>additional options</a> of crane",
"オプションで、craneの<a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>追加オプション</a>を指定してください。");
+ m.put("Optionally specify <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> executable,\nfor instance <i>/usr/local/bin/tmux</i>. Leave empty to use tmux executable in PATH",
+ "オプションで<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>実行ファイルを指定します。\n例えば<i>/usr/local/bin/tmux</i>。PATHにあるtmux実行ファイルを使用する場合は空のままにします。");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to build, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to build for platform of the node running the job",
"オプションで、ビルドするプラットフォームを<span class='text-info'>カンマ区切り</span>で指定してください。例: <tt>linux/amd64,linux/arm64</tt>。ジョブを実行しているノードのプラットフォームでビルドする場合は空のままにしてください。");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to scan, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to scan all platforms in OCI layout",
@@ -4237,8 +4245,8 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("This permission enables one to access confidential issues", "この権限により、機密事項にアクセスすることが可能になります");
m.put("This permission enables one to schedule issues into iterations", "この権限により、イテレーションに課題をスケジュールすることが可能になります");
m.put("This property is imported from {0}", "このプロパティは{0}からインポートされます");
- m.put("This provisioner creates workspaces with OneDev server's shell facility, and it requires\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
- "このプロビジョナーはOneDevサーバーのシェル機能を使用してワークスペースを作成し、\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>がOneDevサーバーにインストールされている必要があります<br>\n<b class='text-danger'>警告</b>: このプロビジョナーによって作成されたワークスペースは、\nOneDevサーバープロセスと同じ権限を持ちます。信頼できるプロジェクトのみが使用できるようにしてください。\n");
+ m.put("This provisioner creates workspaces with OneDev server's shell facility, and requires\ntmux to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
+ "このプロビジョナーはOneDevサーバーのシェル機能を使用してワークスペースを作成し、\nOneDevサーバーにtmuxがインストールされている必要があります<br>\n<b class='text-danger'>警告</b>: このプロビジョナーで作成されたワークスペースは、\nOneDevサーバープロセスと同じ権限を持ちます。信頼できるプロジェクトでのみ使用できるようにしてください。\n");
m.put("This pull request has been discarded", "このプルリクエストは破棄されました");
m.put("This report will be displayed in pull request overview page if build is triggered by pull request",
"このレポートは、プルリクエストによってビルドがトリガーされた場合、プルリクエスト概要ページに表示されます");
@@ -4938,6 +4946,7 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("tags", "タグ");
m.put("the url to set up user account", "ユーザーアカウントを設定するためのURL");
m.put("time aggregation link", "時間集計リンク");
+ m.put("tmux Executable", "tmux 実行可能ファイル");
m.put("touching specified path", "指定されたパスに触れる");
m.put("transit manually by any user", "任意のユーザーによる手動遷移");
m.put("transit manually by any user of roles \"{0}\"", "ロール\"{0}\"の任意のユーザーによる手動遷移");
@@ -4994,12 +5003,6 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "コンテナ内でClaude Codeを実行するワークスペックを作成し、分離とセキュリティを確保します。\n必要に応じて<a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>コンテナイメージ</a>を後でカスタマイズできます。\n<b class='text-info'>注意: </b>コンテナ内でワークスペースを作成するには、エンタープライズサブスクリプションが必要です。\n<a href='https://onedev.io/pricing' target='_blank'>30日間無料でお試しください</a>");
- m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "コンテナ内でCodexを実行するワークスペックを作成し、分離とセキュリティを確保します。\n必要に応じて<a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>コンテナイメージ</a>を後でカスタマイズできます。\n<b class='text-info'>注意: </b>コンテナ内でワークスペースを作成するには、エンタープライズサブスクリプションが必要です。\n<a href='https://onedev.io/pricing' target='_blank'>30日間無料でお試しください</a>");
- m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "コンテナ内でOpen Codeを実行するワークスペックを作成し、分離とセキュリティを確保します。\n必要に応じて<a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>コンテナイメージ</a>を後でカスタマイズできます。\n<b class='text-info'>注意: </b>コンテナ内でワークスペースを作成するには、エンタープライズサブスクリプションが必要です。\n<a href='https://onedev.io/pricing' target='_blank'>30日間無料でお試しください</a>");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_ko.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_ko.java
index d33837a606..c26b72aa07 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_ko.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_ko.java
@@ -911,12 +911,18 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("Create User", "사용자 생성");
m.put("Create Workspace", "워크스페이스 생성");
m.put("Create Workspace Spec", "워크스페이스 사양 생성");
- m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "서버 셸 환경에서 직접 Claude Code를 실행하는 워크스페이스 사양을 생성합니다.\n이 템플릿으로 생성된 사양을 사용하려면 다음을 확인하십시오:\n<ul>\n <li>OneDev 서버에 <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>가 설치되어 있어야 합니다</li>\n <li>OneDev 서버에 <a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a>가 설치되어 있어야 합니다</li>\n <li>'관리 / 워크스페이스 프로비저너'에 셸 프로비저너가 추가되고 '적용 가능한 프로젝트'가 적절히 구성되어 있어야 합니다</li>\n</ul>");
- m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "서버 셸 환경에서 직접 Codex를 실행하는 워크스페이스 사양을 생성합니다.\n이 템플릿으로 생성된 사양을 사용하려면 다음을 확인하십시오:\n<ul>\n <li>OneDev 서버에 <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>가 설치되어 있어야 합니다</li>\n <li>OneDev 서버에 <a href='https://openai.com/codex/' target='_blank'>Codex</a>가 설치되어 있어야 합니다</li>\n <li>'관리 / 워크스페이스 프로비저너'에 셸 프로비저너가 추가되고 '적용 가능한 프로젝트'가 적절히 구성되어 있어야 합니다</li>\n</ul>");
- m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "서버 셸 환경에서 직접 Open Code를 실행하는 워크스페이스 사양을 생성합니다.\n이 템플릿으로 생성된 사양을 사용하려면 다음을 확인하십시오:\n<ul>\n <li>OneDev 서버에 <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>가 설치되어 있어야 합니다</li>\n <li>OneDev 서버에 <a href='https://opencode.ai/' target='_blank'>Open Code</a>가 설치되어 있어야 합니다</li>\n <li>'관리 / 워크스페이스 프로비저너'에 셸 프로비저너가 추가되고 '적용 가능한 프로젝트'가 적절히 구성되어 있어야 합니다</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "서버 셸 환경에서 Claude Code를 직접 실행하는 워크스페이스 사양을 생성합니다.\n이 템플릿으로 생성된 사양을 사용하려면 다음을 확인하십시오:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a>가 OneDev 서버에 설치되어 있어야 합니다</li>\n <li>'관리 / 워크스페이스 프로비저너'에 셸 프로비저너가 추가되고 '적용 가능한 프로젝트'가 적절히 구성되어 있어야 합니다</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "격리 및 보안 목적을 위해 컨테이너 내에서 Claude Code를 실행하는 작업 공간 사양을 만드세요.\n필요에 따라 <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>컨테이너 이미지</a>를\n나중에 사용자 정의할 수 있습니다.\n<b class='text-info'>참고: </b> 컨테이너 내에서 작업 공간을 생성하려면 엔터프라이즈 구독이 필요합니다.\n<a href='https://onedev.io/pricing' target='_blank'>30일 무료 체험</a>");
+ m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "서버 셸 환경에서 Codex를 직접 실행하는 워크스페이스 사양을 생성합니다.\n이 템플릿으로 생성된 사양을 사용하려면 다음을 확인하십시오:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a>가 OneDev 서버에 설치되어 있어야 합니다</li>\n <li>'관리 / 워크스페이스 프로비저너'에 셸 프로비저너가 추가되고 '적용 가능한 프로젝트'가 적절히 구성되어 있어야 합니다</li>\n</ul>");
+ m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "격리 및 보안 목적을 위해 컨테이너 내에서 Codex를 실행하는 작업 공간 사양을 만드세요.\n필요에 따라 <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>컨테이너 이미지</a>를\n나중에 사용자 정의할 수 있습니다.\n<b class='text-info'>참고: </b> 컨테이너 내에서 작업 공간을 생성하려면 엔터프라이즈 구독이 필요합니다.\n<a href='https://onedev.io/pricing' target='_blank'>30일 무료 체험</a>");
+ m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "서버 셸 환경에서 Open Code를 직접 실행하는 워크스페이스 사양을 생성합니다.\n이 템플릿으로 생성된 사양을 사용하려면 다음을 확인하십시오:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a>가 OneDev 서버에 설치되어 있어야 합니다</li>\n <li>'관리 / 워크스페이스 프로비저너'에 셸 프로비저너가 추가되고 '적용 가능한 프로젝트'가 적절히 구성되어 있어야 합니다</li>\n</ul>");
+ m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "격리 및 보안 목적을 위해 컨테이너 내에서 Open Code를 실행하는 작업 공간 사양을 만드세요.\n필요에 따라 <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>컨테이너 이미지</a>를\n나중에 사용자 정의할 수 있습니다.\n<b class='text-info'>참고: </b> 컨테이너 내에서 작업 공간을 생성하려면 엔터프라이즈 구독이 필요합니다.\n<a href='https://onedev.io/pricing' target='_blank'>30일 무료 체험</a>");
m.put("Create body", "본문 생성");
m.put("Create branch <b>{0}</b> from {1}", "{1}에서 <b>{0}</b> 브랜치 생성");
m.put("Create child projects under a project", "프로젝트 아래에 하위 프로젝트 생성");
@@ -2498,6 +2504,8 @@ public class Translation_ko extends TranslationResourceBundle {
"선택적으로 crane의 <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_pull.md' target='_blank'>추가 옵션</a>을 지정하세요.");
m.put("Optionally specify <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>additional options</a> of crane",
"선택적으로 crane의 <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>추가 옵션</a>을 지정하세요.");
+ m.put("Optionally specify <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> executable,\nfor instance <i>/usr/local/bin/tmux</i>. Leave empty to use tmux executable in PATH",
+ "선택적으로 <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> 실행 파일을 지정하십시오,\n예를 들어 <i>/usr/local/bin/tmux</i>. PATH에 있는 tmux 실행 파일을 사용하려면 비워 두십시오");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to build, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to build for platform of the node running the job",
"선택적으로 <span class='text-info'>쉼표로 구분된</span> 빌드 플랫폼을 지정하세요. 예를 들어 <tt>linux/amd64,linux/arm64</tt>. 작업을 실행하는 노드의 플랫폼으로 빌드하려면 비워 두세요.");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to scan, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to scan all platforms in OCI layout",
@@ -4237,8 +4245,8 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("This permission enables one to access confidential issues", "이 권한은 기밀 이슈에 액세스할 수 있도록 합니다");
m.put("This permission enables one to schedule issues into iterations", "이 권한은 이슈를 반복 작업에 일정으로 추가할 수 있도록 합니다");
m.put("This property is imported from {0}", "이 속성은 {0}에서 가져왔습니다");
- m.put("This provisioner creates workspaces with OneDev server's shell facility, and it requires\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
- "이 프로비저너는 OneDev 서버의 셸 기능으로 워크스페이스를 생성하며,\nOneDev 서버에 <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>가 설치되어 있어야 합니다<br>\n<b class='text-danger'>경고:</b> 이 프로비저너로 생성된 워크스페이스는 OneDev 서버 프로세스와 동일한\n권한을 가집니다. 신뢰할 수 있는 프로젝트에서만 사용되도록 하십시오.\n");
+ m.put("This provisioner creates workspaces with OneDev server's shell facility, and requires\ntmux to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
+ "이 프로비저너는 OneDev 서버의 셸 기능을 사용하여 워크스페이스를 생성하며,\nOneDev 서버에 tmux가 설치되어 있어야 합니다<br>\n<b class='text-danger'>경고</b>: 이 프로비저너로 생성된 워크스페이스는 OneDev 서버 프로세스와 동일한\n권한을 가집니다. 신뢰할 수 있는 프로젝트에서만 사용되도록 하십시오.\n");
m.put("This pull request has been discarded", "이 풀 리퀘스트는 폐기되었습니다");
m.put("This report will be displayed in pull request overview page if build is triggered by pull request",
"이 보고서는 빌드가 풀 리퀘스트에 의해 트리거된 경우 풀 리퀘스트 개요 페이지에 표시됩니다");
@@ -4938,6 +4946,7 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("tags", "태그");
m.put("the url to set up user account", "사용자 계정을 설정하기 위한 URL");
m.put("time aggregation link", "시간 집계 링크");
+ m.put("tmux Executable", "tmux 실행 파일");
m.put("touching specified path", "지정된 경로를 터치하는 중");
m.put("transit manually by any user", "사용자가 수동으로 전환");
m.put("transit manually by any user of roles \"{0}\"", "역할 \"{0}\"의 사용자가 수동으로 전환");
@@ -4994,12 +5003,6 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "격리 및 보안 목적을 위해 컨테이너 내에서 Claude Code를 실행하는 작업 공간 사양을 만드세요.\n필요에 따라 <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>컨테이너 이미지</a>를\n나중에 사용자 정의할 수 있습니다.\n<b class='text-info'>참고: </b> 컨테이너 내에서 작업 공간을 생성하려면 엔터프라이즈 구독이 필요합니다.\n<a href='https://onedev.io/pricing' target='_blank'>30일 무료 체험</a>");
- m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "격리 및 보안 목적을 위해 컨테이너 내에서 Codex를 실행하는 작업 공간 사양을 만드세요.\n필요에 따라 <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>컨테이너 이미지</a>를\n나중에 사용자 정의할 수 있습니다.\n<b class='text-info'>참고: </b> 컨테이너 내에서 작업 공간을 생성하려면 엔터프라이즈 구독이 필요합니다.\n<a href='https://onedev.io/pricing' target='_blank'>30일 무료 체험</a>");
- m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "격리 및 보안 목적을 위해 컨테이너 내에서 Open Code를 실행하는 작업 공간 사양을 만드세요.\n필요에 따라 <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>컨테이너 이미지</a>를\n나중에 사용자 정의할 수 있습니다.\n<b class='text-info'>참고: </b> 컨테이너 내에서 작업 공간을 생성하려면 엔터프라이즈 구독이 필요합니다.\n<a href='https://onedev.io/pricing' target='_blank'>30일 무료 체험</a>");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_pt.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_pt.java
index babafc7bd5..608d982858 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_pt.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_pt.java
@@ -911,12 +911,18 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("Create User", "Criar Usuário");
m.put("Create Workspace", "Criar Workspace");
m.put("Create Workspace Spec", "Criar Especificação de Workspace");
- m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Crie uma especificação de espaço de trabalho executando o Claude Code diretamente com o ambiente de shell do servidor.\nPara usar a especificação criada por este modelo, certifique-se de que:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> está instalado no servidor OneDev</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> está instalado no servidor OneDev</li>\n <li>Um provisionador de shell é adicionado em 'Administração / Provisionadores de Espaço de Trabalho' com 'projetos aplicáveis' configurados corretamente</li>\n</ul>");
- m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Crie uma especificação de espaço de trabalho executando o Codex diretamente com o ambiente de shell do servidor.\nPara usar a especificação criada por este modelo, certifique-se de que:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> está instalado no servidor OneDev</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> está instalado no servidor OneDev</li>\n <li>Um provisionador de shell é adicionado em 'Administração / Provisionadores de Espaço de Trabalho' com 'projetos aplicáveis' configurados corretamente</li>\n</ul>");
- m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "Crie uma especificação de espaço de trabalho executando o Open Code diretamente com o ambiente de shell do servidor.\nPara usar a especificação criada por este modelo, certifique-se de que:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> está instalado no servidor OneDev</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> está instalado no servidor OneDev</li>\n <li>Um provisionador de shell é adicionado em 'Administração / Provisionadores de Espaço de Trabalho' com 'projetos aplicáveis' configurados corretamente</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Crie uma especificação de workspace executando Claude Code diretamente com o ambiente de shell do servidor.\nPara usar a especificação criada por este modelo, certifique-se de que:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> está instalado no servidor OneDev</li>\n <li>Um provisionador de shell é adicionado em 'Administração / Provisionadores de Workspace' com 'projetos aplicáveis' configurados corretamente</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Crie uma especificação de espaço de trabalho executando Claude Code dentro de um contêiner para fins de isolamento e segurança.\nVocê pode personalizar a <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>imagem do contêiner</a>\nposteriormente para atender às suas necessidades, se desejar.\n<b class='text-info'>NOTA: </b> Criar espaço de trabalho dentro de contêiner requer uma assinatura empresarial.\n<a href='https://onedev.io/pricing' target='_blank'>Experimente grátis</a> por 30 dias");
+ m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Crie uma especificação de workspace executando Codex diretamente com o ambiente de shell do servidor.\nPara usar a especificação criada por este modelo, certifique-se de que:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> está instalado no servidor OneDev</li>\n <li>Um provisionador de shell é adicionado em 'Administração / Provisionadores de Workspace' com 'projetos aplicáveis' configurados corretamente</li>\n</ul>");
+ m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Crie uma especificação de espaço de trabalho executando Codex dentro de um contêiner para fins de isolamento e segurança.\nVocê pode personalizar a <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>imagem do contêiner</a>\nposteriormente para atender às suas necessidades, se desejar.\n<b class='text-info'>NOTA: </b> Criar espaço de trabalho dentro de contêiner requer uma assinatura empresarial.\n<a href='https://onedev.io/pricing' target='_blank'>Experimente grátis</a> por 30 dias");
+ m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Crie uma especificação de workspace executando Open Code diretamente com o ambiente de shell do servidor.\nPara usar a especificação criada por este modelo, certifique-se de que:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> está instalado no servidor OneDev</li>\n <li>Um provisionador de shell é adicionado em 'Administração / Provisionadores de Workspace' com 'projetos aplicáveis' configurados corretamente</li>\n</ul>");
+ m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "Crie uma especificação de espaço de trabalho executando Open Code dentro de um contêiner para fins de isolamento e segurança.\nVocê pode personalizar a <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>imagem do contêiner</a>\nposteriormente para atender às suas necessidades, se desejar.\n<b class='text-info'>NOTA: </b> Criar espaço de trabalho dentro de contêiner requer uma assinatura empresarial.\n<a href='https://onedev.io/pricing' target='_blank'>Experimente grátis</a> por 30 dias");
m.put("Create body", "Criar corpo");
m.put("Create branch <b>{0}</b> from {1}", "Criar branch <b>{0}</b> de {1}");
m.put("Create child projects under a project", "Criar projetos filhos dentro de um projeto");
@@ -2498,6 +2504,8 @@ public class Translation_pt extends TranslationResourceBundle {
"Opcionalmente especifique <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_pull.md' target='_blank'>opções adicionais</a> do crane");
m.put("Optionally specify <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>additional options</a> of crane",
"Opcionalmente especifique <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>opções adicionais</a> do crane");
+ m.put("Optionally specify <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> executable,\nfor instance <i>/usr/local/bin/tmux</i>. Leave empty to use tmux executable in PATH",
+ "Opcionalmente, especifique o executável <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a>,\npor exemplo, <i>/usr/local/bin/tmux</i>. Deixe vazio para usar o executável tmux no PATH");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to build, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to build for platform of the node running the job",
"Opcionalmente especifique <span class='text-info'>plataformas separadas por vírgula</span> para construir, por exemplo <tt>linux/amd64,linux/arm64</tt>. Deixe vazio para construir para a plataforma do nó que executa o trabalho");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to scan, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to scan all platforms in OCI layout",
@@ -4237,8 +4245,8 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("This permission enables one to access confidential issues", "Esta permissão permite acessar problemas confidenciais");
m.put("This permission enables one to schedule issues into iterations", "Esta permissão permite agendar problemas em iterações");
m.put("This property is imported from {0}", "Esta propriedade é importada de {0}");
- m.put("This provisioner creates workspaces with OneDev server's shell facility, and it requires\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
- "Este provisionador cria espaços de trabalho com a facilidade de shell do servidor OneDev, e requer\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> instalado no servidor OneDev<br>\n<b class='text-danger'>AVISO</b>: Espaços de trabalho criados por este provisionador têm a mesma\npermissão que o processo do servidor OneDev. Certifique-se de que ele só pode ser usado por projetos confiáveis.\n");
+ m.put("This provisioner creates workspaces with OneDev server's shell facility, and requires\ntmux to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
+ "Este provisionador cria workspaces com a facilidade de shell do servidor OneDev e requer\ntmux instalado no servidor OneDev<br>\n<b class='text-danger'>AVISO</b>: Workspaces criados por este provisionador têm a mesma\npermissão que o processo do servidor OneDev. Certifique-se de que só possa ser usado por projetos confiáveis.\n");
m.put("This pull request has been discarded", "Este pull request foi descartado");
m.put("This report will be displayed in pull request overview page if build is triggered by pull request",
"Este relatório será exibido na página de visão geral do pull request se a build for acionada por um pull request");
@@ -4938,6 +4946,7 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("tags", "tags");
m.put("the url to set up user account", "a URL para configurar a conta do usuário");
m.put("time aggregation link", "link de agregação de tempo");
+ m.put("tmux Executable", "Executável tmux");
m.put("touching specified path", "tocando o caminho especificado");
m.put("transit manually by any user", "transitar manualmente por qualquer usuário");
m.put("transit manually by any user of roles \"{0}\"", "transitar manualmente por qualquer usuário com os papéis \"{0}\"");
@@ -4994,12 +5003,6 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Crie uma especificação de espaço de trabalho executando Claude Code dentro de um contêiner para fins de isolamento e segurança.\nVocê pode personalizar a <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>imagem do contêiner</a>\nposteriormente para atender às suas necessidades, se desejar.\n<b class='text-info'>NOTA: </b> Criar espaço de trabalho dentro de contêiner requer uma assinatura empresarial.\n<a href='https://onedev.io/pricing' target='_blank'>Experimente grátis</a> por 30 dias");
- m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Crie uma especificação de espaço de trabalho executando Codex dentro de um contêiner para fins de isolamento e segurança.\nVocê pode personalizar a <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>imagem do contêiner</a>\nposteriormente para atender às suas necessidades, se desejar.\n<b class='text-info'>NOTA: </b> Criar espaço de trabalho dentro de contêiner requer uma assinatura empresarial.\n<a href='https://onedev.io/pricing' target='_blank'>Experimente grátis</a> por 30 dias");
- m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "Crie uma especificação de espaço de trabalho executando Open Code dentro de um contêiner para fins de isolamento e segurança.\nVocê pode personalizar a <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>imagem do contêiner</a>\nposteriormente para atender às suas necessidades, se desejar.\n<b class='text-info'>NOTA: </b> Criar espaço de trabalho dentro de contêiner requer uma assinatura empresarial.\n<a href='https://onedev.io/pricing' target='_blank'>Experimente grátis</a> por 30 dias");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_zh.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_zh.java
index 5badca37fa..f7f3b45735 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_zh.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_zh.java
@@ -937,12 +937,18 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Create User", "创建用户");
m.put("Create Workspace", "创建工作区");
m.put("Create Workspace Spec", "创建工作区规格");
- m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "创建一个直接在服务器 shell 环境中运行 Claude Code 的工作区规范。\n要使用此模板创建的规范,请确保:\n<ul>\n <li>在 OneDev 服务器上安装了 <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a></li>\n <li>在 OneDev 服务器上安装了 <a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a></li>\n <li>在“管理 / 工作区配置器”中添加了一个 shell 配置器,并正确配置了“适用项目”</li>\n</ul>");
- m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "创建一个直接在服务器 shell 环境中运行 Codex 的工作区规范。\n要使用此模板创建的规范,请确保:\n<ul>\n <li>在 OneDev 服务器上安装了 <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a></li>\n <li>在 OneDev 服务器上安装了 <a href='https://openai.com/codex/' target='_blank'>Codex</a></li>\n <li>在“管理 / 工作区配置器”中添加了一个 shell 配置器,并正确配置了“适用项目”</li>\n</ul>");
- m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> is installed on OneDev server</li>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
- "创建一个直接在服务器 shell 环境中运行 Open Code 的工作区规范。\n要使用此模板创建的规范,请确保:\n<ul>\n <li>在 OneDev 服务器上安装了 <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a></li>\n <li>在 OneDev 服务器上安装了 <a href='https://opencode.ai/' target='_blank'>Open Code</a></li>\n <li>在“管理 / 工作区配置器”中添加了一个 shell 配置器,并正确配置了“适用项目”</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "创建一个直接在服务器 shell 环境中运行 Claude Code 的工作区规范。\n要使用此模板创建的规范,请确保:\n<ul>\n <li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> 已安装在 OneDev 服务器上</li>\n <li>在 'Administration / Workspace Provisioners' 中添加了一个 shell 配置器,并正确配置了 'applicable projects'</li>\n</ul>");
+ m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "创建一个在容器内运行 Claude Code 的工作区规范,以实现隔离和安全目的。\n您可以稍后根据需要自定义<a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>容器镜像</a>。\n<b class='text-info'>注意:</b>在容器内创建工作区需要企业订阅。\n<a href='https://onedev.io/pricing' target='_blank'>免费试用</a>30天");
+ m.put("Create a workspace spec running Codex directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "创建一个直接在服务器 shell 环境中运行 Codex 的工作区规范。\n要使用此模板创建的规范,请确保:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> 已安装在 OneDev 服务器上</li>\n <li>在 'Administration / Workspace Provisioners' 中添加了一个 shell 配置器,并正确配置了 'applicable projects'</li>\n</ul>");
+ m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "创建一个在容器内运行 Codex 的工作区规范,以实现隔离和安全目的。\n您可以稍后根据需要自定义<a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>容器镜像</a>。\n<b class='text-info'>注意:</b>在容器内创建工作区需要企业订阅。\n<a href='https://onedev.io/pricing' target='_blank'>免费试用</a>30天");
+ m.put("Create a workspace spec running Open Code directly with server shell environment.\nTo use spec created by this template, please ensure that:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "创建一个直接在服务器 shell 环境中运行 Open Code 的工作区规范。\n要使用此模板创建的规范,请确保:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> 已安装在 OneDev 服务器上</li>\n <li>在 'Administration / Workspace Provisioners' 中添加了一个 shell 配置器,并正确配置了 'applicable projects'</li>\n</ul>");
+ m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
+ "创建一个在容器内运行 Open Code 的工作区规范,以实现隔离和安全目的。\n您可以稍后根据需要自定义<a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>容器镜像</a>。\n<b class='text-info'>注意:</b>在容器内创建工作区需要企业订阅。\n<a href='https://onedev.io/pricing' target='_blank'>免费试用</a>30天");
m.put("Create body", "创建正文");
m.put("Create branch <b>{0}</b> from {1}", "创建分支 <b>{0}</b>(基于 {1})");
m.put("Create child projects under a project", "在项目下创建子项目");
@@ -2524,6 +2530,8 @@ public class Translation_zh extends TranslationResourceBundle {
"可选择为 crane 指定 <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_pull.md' target='_blank'>附加选项</a>");
m.put("Optionally specify <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>additional options</a> of crane",
"可选择为 crane 指定 <a href='https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md' target='_blank'>附加选项</a>");
+ m.put("Optionally specify <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> executable,\nfor instance <i>/usr/local/bin/tmux</i>. Leave empty to use tmux executable in PATH",
+ "可选地指定 <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> 可执行文件,\n例如 <i>/usr/local/bin/tmux</i>。留空以使用 PATH 中的 tmux 可执行文件");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to build, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to build for platform of the node running the job",
"可选择指定 <span class='text-info'>逗号分隔</span> 的平台,例如 <tt>linux/amd64,linux/arm64</tt>。留空则构建为运行任务的节点的平台");
m.put("Optionally specify <span class='text-info'>comma separated</span> platforms to scan, for instance <tt>linux/amd64,linux/arm64</tt>. Leave empty to scan all platforms in OCI layout",
@@ -4263,8 +4271,8 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("This permission enables one to access confidential issues", "此权限允许访问机密工单");
m.put("This permission enables one to schedule issues into iterations", "此权限允许将工单调度到迭代中");
m.put("This property is imported from {0}", "此属性是从 {0} 导入的");
- m.put("This provisioner creates workspaces with OneDev server's shell facility, and it requires\n<a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
- "此配置器使用 OneDev 服务器的 shell 功能创建工作区,并且需要\n在 OneDev 服务器上安装 <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a><br>\n<b class='text-danger'>警告</b>:由此配置器创建的工作区具有与 OneDev 服务器进程相同的\n权限。确保它只能被可信项目使用。\n");
+ m.put("This provisioner creates workspaces with OneDev server's shell facility, and requires\ntmux to be installed on OneDev server<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same\npermission as the OneDev server process. Make sure it can only be used by trusted projects.\n",
+ "此配置器使用 OneDev 服务器的 shell 功能创建工作区,并要求\n在 OneDev 服务器上安装 tmux<br>\n<b class='text-danger'>警告</b>:此配置器创建的工作区具有与 OneDev 服务器进程相同的\n权限。确保它只能被信任的项目使用。\n");
m.put("This pull request has been discarded", "此合并请求已丢弃");
m.put("This report will be displayed in pull request overview page if build is triggered by pull request",
"如果构建由合并请求触发,此报告将显示在合并请求概览页面中");
@@ -4964,6 +4972,7 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("tags", "标签");
m.put("the url to set up user account", "设置用户账户的 URL");
m.put("time aggregation link", "时间聚合链接");
+ m.put("tmux Executable", "tmux 可执行文件");
m.put("touching specified path", "涉及指定路径");
m.put("transit manually by any user", "由任何用户手动转换");
m.put("transit manually by any user of roles \"{0}\"", "由具有角色 \"{0}\" 的任何用户手动转换");
@@ -5020,12 +5029,6 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "不能为空");
m.put("{javax.validation.constraints.NotNull.message}", "不能为空");
m.put("{javax.validation.constraints.Size.message}", "至少需要指定一个值");
- m.put("Create a workspace spec running Claude Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "创建一个在容器内运行 Claude Code 的工作区规范,以实现隔离和安全目的。\n您可以稍后根据需要自定义<a href='https://code.onedev.io/onedev/docker/claudecode' target='_blank'>容器镜像</a>。\n<b class='text-info'>注意:</b>在容器内创建工作区需要企业订阅。\n<a href='https://onedev.io/pricing' target='_blank'>免费试用</a>30天");
- m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "创建一个在容器内运行 Codex 的工作区规范,以实现隔离和安全目的。\n您可以稍后根据需要自定义<a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>容器镜像</a>。\n<b class='text-info'>注意:</b>在容器内创建工作区需要企业订阅。\n<a href='https://onedev.io/pricing' target='_blank'>免费试用</a>30天");
- m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired.\n<b class='text-info'>NOTE: </b> Creating workspace inside container requires an enterprise subscription.\n<a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days",
- "创建一个在容器内运行 Open Code 的工作区规范,以实现隔离和安全目的。\n您可以稍后根据需要自定义<a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>容器镜像</a>。\n<b class='text-info'>注意:</b>在容器内创建工作区需要企业订阅。\n<a href='https://onedev.io/pricing' target='_blank'>免费试用</a>30天");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/util/Testable.java b/server-core/src/main/java/io/onedev/server/web/util/Testable.java
index 5518f491ee..7a499b5b4d 100644
--- a/server-core/src/main/java/io/onedev/server/web/util/Testable.java
+++ b/server-core/src/main/java/io/onedev/server/web/util/Testable.java
@@ -8,4 +8,10 @@ public interface Testable<T extends Serializable> {
void test(T data, TaskLogger logger);
+ public static class None implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ }
+
}
diff --git a/server-plugin/server-plugin-executor-servershell/src/main/java/io/onedev/server/plugin/executor/servershell/ServerShellExecutor.java b/server-plugin/server-plugin-executor-servershell/src/main/java/io/onedev/server/plugin/executor/servershell/ServerShellExecutor.java
index 2703f3e886..548ce154ec 100644
--- a/server-plugin/server-plugin-executor-servershell/src/main/java/io/onedev/server/plugin/executor/servershell/ServerShellExecutor.java
+++ b/server-plugin/server-plugin-executor-servershell/src/main/java/io/onedev/server/plugin/executor/servershell/ServerShellExecutor.java
@@ -4,8 +4,8 @@ import static io.onedev.agent.AgentUtils.newInfoLogger;
import static io.onedev.agent.AgentUtils.newWarningLogger;
import static io.onedev.k8shelper.KubernetesHelper.cloneRepository;
import static io.onedev.k8shelper.KubernetesHelper.initRepository;
-import static io.onedev.k8shelper.KubernetesHelper.setupGitCerts;
import static io.onedev.k8shelper.KubernetesHelper.replacePlaceholders;
+import static io.onedev.k8shelper.KubernetesHelper.setupGitCerts;
import static io.onedev.k8shelper.KubernetesHelper.stringifyStepPosition;
import java.io.File;
@@ -33,6 +33,7 @@ import io.onedev.k8shelper.BuildImageFacade;
import io.onedev.k8shelper.CheckoutFacade;
import io.onedev.k8shelper.CommandFacade;
import io.onedev.k8shelper.CompositeFacade;
+import io.onedev.k8shelper.KubernetesHelper;
import io.onedev.k8shelper.LeafFacade;
import io.onedev.k8shelper.LeafHandler;
import io.onedev.k8shelper.PruneBuilderCacheFacade;
@@ -305,7 +306,8 @@ public class ServerShellExecutor extends JobExecutor implements Testable<TestDat
@Override
public void test(TestData testData, TaskLogger jobLogger) {
Commandline git = CommandUtils.newGit();
- AgentUtils.testCommands(git, testData.getCommands(), jobLogger);
+ AgentUtils.testCommands(testData.getCommands(), jobLogger);
+ KubernetesHelper.testGitLfsAvailability(git, jobLogger);
}
@Editable(name="Specify Shell/Batch Commands to Run")
diff --git a/server-plugin/server-plugin-provisioner-shell/src/main/java/io/onedev/server/plugin/provisioner/shell/ShellProvisioner.java b/server-plugin/server-plugin-provisioner-shell/src/main/java/io/onedev/server/plugin/provisioner/shell/ShellProvisioner.java
index 2e0a3ae8e2..af2a0ef569 100644
--- a/server-plugin/server-plugin-provisioner-shell/src/main/java/io/onedev/server/plugin/provisioner/shell/ShellProvisioner.java
+++ b/server-plugin/server-plugin-provisioner-shell/src/main/java/io/onedev/server/plugin/provisioner/shell/ShellProvisioner.java
@@ -5,28 +5,22 @@ import static io.onedev.agent.AgentUtils.newInfoLogger;
import java.io.File;
import java.io.IOException;
-import java.io.Serializable;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.CountDownLatch;
-import javax.validation.constraints.NotEmpty;
-
import org.apache.commons.io.FilenameUtils;
-import io.onedev.agent.AgentUtils;
import io.onedev.commons.utils.ExplicitException;
import io.onedev.commons.utils.FileUtils;
import io.onedev.commons.utils.TaskLogger;
import io.onedev.commons.utils.command.Commandline;
+import io.onedev.k8shelper.KubernetesHelper;
import io.onedev.server.OneDev;
-import io.onedev.server.annotation.Code;
import io.onedev.server.annotation.Editable;
-import io.onedev.server.annotation.OmitName;
import io.onedev.server.cache.WorkspaceCacheProvisioner;
import io.onedev.server.git.CommandUtils;
import io.onedev.server.model.Workspace;
import io.onedev.server.model.support.administration.workspaceprovisioner.WorkspaceProvisioner;
-import io.onedev.server.plugin.provisioner.shell.ShellProvisioner.TestData;
import io.onedev.server.terminal.CommandlineShell;
import io.onedev.server.terminal.Shell;
import io.onedev.server.terminal.Terminal;
@@ -35,17 +29,30 @@ import io.onedev.server.workspace.WorkspaceContext;
import io.onedev.server.workspace.WorkspaceRuntime;
@Editable(order=ShellProvisioner.ORDER, name="Shell Provisioner", description="""
- This provisioner creates workspaces with OneDev server's shell facility, and it requires
- <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> to be installed on OneDev server<br>
+ This provisioner creates workspaces with OneDev server's shell facility, and requires
+ tmux to be installed on OneDev server<br>
<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have the same
permission as the OneDev server process. Make sure it can only be used by trusted projects.
""")
-public class ShellProvisioner extends WorkspaceProvisioner implements Testable<TestData> {
+public class ShellProvisioner extends WorkspaceProvisioner implements Testable<Testable.None> {
private static final long serialVersionUID = 1L;
static final int ORDER = 200;
-
+
+ private String tmuxExecutable;
+
+ @Editable(order=100, name="tmux Executable", placeholder="Use default", description="""
+ Optionally specify <a href='https://github.com/tmux/tmux' target='_blank'>tmux</a> executable,
+ for instance <i>/usr/local/bin/tmux</i>. Leave empty to use tmux executable in PATH""")
+ public String getTmuxExecutable() {
+ return tmuxExecutable;
+ }
+
+ public void setTmuxExecutable(String tmuxExecutable) {
+ this.tmuxExecutable = tmuxExecutable;
+ }
+
private void checkApplicable() {
if (OneDev.getK8sService() != null) {
throw new ExplicitException("OneDev running inside kubernetes cluster does not support workspaces yet");
@@ -53,34 +60,20 @@ public class ShellProvisioner extends WorkspaceProvisioner implements Testable<T
}
@Override
- public void test(TestData testData, TaskLogger jobLogger) {
+ public void test(None testData, TaskLogger jobLogger) {
checkApplicable();
- Commandline git = CommandUtils.newGit();
- AgentUtils.testCommands(git, testData.getCommands() + "\ntmux -V", jobLogger);
+ KubernetesHelper.testTmuxAvailability(newTmux(), jobLogger);
+ KubernetesHelper.testGitLfsAvailability(CommandUtils.newGit(), jobLogger);
}
-
- @Editable(name="Specify Shell/Batch Commands to Run")
- public static class TestData implements Serializable {
- private static final long serialVersionUID = 1L;
-
- private String commands;
-
- @Editable
- @OmitName
- @Code(language=Code.SHELL)
- @NotEmpty
- public String getCommands() {
- return commands;
- }
-
- public void setCommands(String commands) {
- this.commands = commands;
- }
-
+ public Commandline newTmux() {
+ var tmux = getTmuxExecutable();
+ if (tmux == null)
+ tmux = "tmux";
+ return new Commandline(tmux);
}
-
+
@Override
public WorkspaceRuntime provision(WorkspaceContext context, TaskLogger logger) {
checkApplicable();
@@ -137,12 +130,12 @@ public class ShellProvisioner extends WorkspaceProvisioner implements Testable<T
public Shell doOpenShell(Terminal terminal) {
var workDir = Workspace.getWorkDir(context.getProjectId(), context.getWorkspaceNumber());
FileUtils.createDir(workDir);
- var cmdline = new Commandline("tmux")
- .addArgs("new-session")
+ var tmux = newTmux();
+ tmux.addArgs("new-session")
.addArgs(context.getSpec().getShell().getFacility().getExecutable())
.workingDir(workDir)
.environments(envVars);
- return new CommandlineShell(terminal, cmdline);
+ return new CommandlineShell(terminal, tmux);
}
@Override