-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: New Crowdin translations (#223)
Co-authored-by: Crowdin Bot <[email protected]>
- Loading branch information
1 parent
d57bf30
commit 37c6207
Showing
58 changed files
with
490 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuilder/config_pl.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
propertiesFilePath=\u015acie\u017cka Pliku W\u0142a\u015bciwo\u015bci | ||
propertiesContent=Zawarto\u015b\u0107 W\u0142a\u015bciwo\u015bci |
2 changes: 2 additions & 0 deletions
2
src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuilder/config_zh.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
propertiesFilePath=\u5c6c\u6027\u6587\u4ef6\u8def\u5f91 | ||
propertiesContent=\u5c6c\u6027\u5167\u5bb9 |
7 changes: 7 additions & 0 deletions
7
src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/config_zh.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
prepareEnvironment=\u6e96\u5099\u904b\u884c\u74b0\u5883 | ||
keepEnvVars=\u4fdd\u7559 Jenkins \u74b0\u5883\u8b8a\u91cf | ||
keepBuildVars=\u4fdd\u7559 Jenkins \u69cb\u5efa\u8b8a\u91cf | ||
overrideBuildParams=\u8986\u84cb\u69cb\u5efa\u53c3\u6578 | ||
envinjectContributions=EnvInject \u8ca2\u737b | ||
addContribution=\u6dfb\u52a0\u8ca2\u737b | ||
deleteContribution=\u522a\u9664\u8ca2\u737b |
6 changes: 6 additions & 0 deletions
6
.../resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-jobPasswords_pl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div> | ||
<p> | ||
Definiuje hasła dla zadania i wprowadza je jako zmienne środowiskowe. <br/> | ||
Hasła są szyfrowane. | ||
</p> | ||
</div> |
6 changes: 6 additions & 0 deletions
6
.../resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-jobPasswords_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div> | ||
<p> | ||
定義作業密碼並將其作為環境變量注入。 <br/> | ||
密碼值是加密的。 | ||
</p> | ||
</div> |
6 changes: 6 additions & 0 deletions
6
...rces/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepBuildVariables_pl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div> | ||
<p>Wprowadza zmienne środowiskowe do Jenkinsa takie jak <code>EXECUTOR_NUMBER</code>, <code>BUILD_ID</code>, | ||
<code>BUILD_TAG</code>, <code>JOB_NAME</code> i tak dalej.</p> | ||
|
||
<p>Wprowadza również zmienne środowiskowe i budowania dostarczane przez inne wtyczki.</p> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
...rces/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepBuildVariables_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div> | ||
<p>注入 <code>EXECUTOR_NUMBER</code>、<code>BUILD_ID</code>、<code>BUILD_TAG</code>、<code>JOB_NAME</code> 等 Jenkins 構建變量。</p> | ||
|
||
<p>注入其他插件提供的環境貢獻者和構建變量貢獻者。</p> | ||
</div> |
6 changes: 6 additions & 0 deletions
6
.../jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepJenkinsSystemVariables_pl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div> | ||
<p>Wprowadza do Jenkinsa zmienne systemowe, takie jak <code>JENKINS_HOME</code>, <code>JENKINS_URL</code>, | ||
<code>NODE_NAME</code> i tak dalej.</p> | ||
|
||
<p>Dodaje również zmienne środowiskowe zdefiniowane jako właściwości globalne i węzła.</p> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
.../jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepJenkinsSystemVariables_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div> | ||
<p>注入 <code>JENKINS_HOME</code>、<code>JENKINS_URL</code>、<code>NODE_NAME</code> 等 Jenkins 系統變量。</p> | ||
|
||
<p>還注入定義為全局屬性和節點屬性的環境變量。</p> | ||
</div> |
22 changes: 22 additions & 0 deletions
22
...ources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-populateCauseEnv_pl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div> | ||
<p> | ||
Ustawiając na 'prawda' ('true'), zmienna środowiskowa 'BUILD_CAUSE' będzie przechowywać wszystkie informacje na temat źródła, z jakiego został uruchomione budowanie (oddzielone znakiem ','). | ||
|
||
<ul> | ||
<li>BUILD_CAUSE = SCMTRIGGER,TIMERTRIGGER,MANUALTRIGGER,UPSTREAMTRIGGER</li> | ||
</ul> | ||
|
||
|
||
Ponadto każde pojedyncze źródło wyzwalania jest dostępne jako odpowiednia zmienna środowiskowa:<br/> | ||
<ul> | ||
<li>BUILD_CAUSE_SCMTRIGGER = true (wyzwalany przez obiekt SCM)</li> | ||
<li>BUILD_CAUSE_TIMERTRIGGER = true (wyzwalane przez harmonogram)</li> | ||
<li>BUILD_CAUSE_MANUALTRIGGER = true (wyzwalane przez użytkownika)</li> | ||
<li>BUILD_CAUSE_UPSTREAMTRIGGER = true (wyzwolone przez nadrzędny projekt)</li> | ||
</ul> | ||
|
||
Nieznane definicje przyczyn/źródeł wyzwalania, będą dodane do zmiennych środowiskowych. Nazwa tych zmiennych będzie odzwierciedlała nazwę implementacji przyczyny/źródła wyzwalania. | ||
Example: BUILD_CAUSE_GITHUB_PUSH | ||
|
||
</p> | ||
</div> |
22 changes: 22 additions & 0 deletions
22
...ources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-populateCauseEnv_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div> | ||
<p> | ||
通過將此設置為 true,將填充包含運行構建的所有原因的環境變量“BUILD_CAUSE”(由“,”分隔)。 | ||
|
||
<ul> | ||
<li>BUILD_CAUSE = SCMTRIGGER,TIMERTRIGGER,MANUALTRIGGER,UPSTREAMTRIGGER</li> | ||
</ul> | ||
|
||
|
||
此外,每個觸發器都可用作單個環境變量:<br/> | ||
<ul> | ||
<li>BUILD_CAUSE_SCMTRIGGER = true (SCM Trigger)</li> | ||
<li>BUILD_CAUSE_TIMERTRIGGER = true (Triggered by Schedule)</li> | ||
<li>BUILD_CAUSE_MANUALTRIGGER = true (triggered by user)</li> | ||
<li>BUILD_CAUSE_UPSTREAMTRIGGER = true (triggered by upstream project)</li> | ||
</ul> | ||
|
||
...未知觸發器將被添加,其實現名稱為大寫。<br/> | ||
...未知的觸發器/原因(例如,來自核心以外的插件)將被添加,其實現名稱為大寫。 | ||
|
||
</p> | ||
</div> |
6 changes: 6 additions & 0 deletions
6
...n/resources/org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/config_pl.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
propertiesFilePath=\u015acie\u017cka Pliku W\u0142a\u015bciwo\u015bci | ||
propertiesContent=Zawarto\u015b\u0107 W\u0142a\u015bciwo\u015bci | ||
scriptFilePath=\u015acie\u017cka do Pliku Skryptu | ||
scriptContent=Zawarto\u015b\u0107 Skryptu | ||
evaluatedGroovyScript=Oceniony Skrypt Groovy | ||
loadFilesFromMaster=Wczytaj pliki skryptu i w\u0142a\u015bciwo\u015bci z kontrolera |
6 changes: 6 additions & 0 deletions
6
...n/resources/org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/config_zh.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
propertiesFilePath=\u5c6c\u6027\u6587\u4ef6\u8def\u5f91 | ||
propertiesContent=\u5c6c\u6027\u5167\u5bb9 | ||
scriptFilePath=\u8173\u672c\u6587\u4ef6\u8def\u5f91 | ||
scriptContent=\u8173\u672c\u5167\u5bb9 | ||
evaluatedGroovyScript=\u8a55\u4f30\u7684 Groovy \u8173\u672c | ||
loadFilesFromMaster=\u5f9e master \u52a0\u8f09\u8173\u672c\u548c\u5c6c\u6027\u6587\u4ef6 |
17 changes: 17 additions & 0 deletions
17
...org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/help-loadFilesFromMaster_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div> | ||
<p> | ||
如果啟用,從 master 節點加載文件(屬性或腳本)。 | ||
如果不選中此選項,Jenkins 從 target 節點 (從/代理或主節點) 加載文件。 | ||
從 master 加載文件可以讓您避免在擁有通用路徑之間發生衝突,例如當您的作業未附加到特定節點時 Windows 和 Linux 之間的問題。 | ||
無論如何,文件將從 target 節點處理。 | ||
</p> | ||
<p> | ||
從 EnvInject 2.0 開始,全局配置可以禁用此選項。 | ||
當選項已被全局配置禁用時,您將看到一條警告,以標記該選項已由作業配置但現在已禁用。 | ||
關閉該選項後 - 確認作業已重新配置 - 該選項將從 UI 中消失。 | ||
</p> | ||
<p> | ||
<b>不建議</b>在新作業中使用此選項,即使它已啟用。 | ||
</p> | ||
</div> | ||
|
5 changes: 5 additions & 0 deletions
5
...s/org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/help-propertiesContent_pl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div> | ||
<p>Podaj parę klucz/wartość (jedna zmienna na linię): <code>KEY=VALUE</code>.</p> | ||
|
||
<p>Wszystkie właściwości będą dostępne jako zmienne środowiskowe jako ich nazwy. Możesz użyć lub nadpisać właściwości określone w powyższym pliku.</p> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
...s/org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/help-propertiesContent_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div> | ||
<p>給出一組鍵/值(每行一個變量): <code>KEY=VALUE</code>。</p> | ||
|
||
<p>所有屬性名稱都可以通過名稱作為環境變量取數。 您可以使用或覆蓋上述屬性文件中指定的屬性。</p> | ||
</div> |
6 changes: 6 additions & 0 deletions
6
.../org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/help-propertiesFilePath_pl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div> | ||
<p>Zwraca ścieżkę pliku z właściwościami. Format pliku musi być standardowym formatem używanym przez <a | ||
href="https://en.wikipedia.org/wiki/.properties">pliki opisu właściwości Javy</a>.</p> | ||
|
||
<p>Ścieżka pliku może być bezwzględna lub względna do obszaru roboczego (proces jest wykonywany <strong>po</strong> wczytaniu obiektu SCM). Wszystkie właściwości będą dostępne jako opowiadające ich nazwą zmienne środowiskowe.</p> | ||
</div> |
6 changes: 6 additions & 0 deletions
6
.../org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/help-propertiesFilePath_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div> | ||
<p>給出屬性文件的文件路徑。 文件格式必須是標準的<a | ||
href="https://en.wikipedia.org/wiki/.properties">Java 屬性文件格式</a>。</p> | ||
|
||
<p>文件路徑可以是絕對的或相對於工作空間的 (該過程在 SCM 簽出<strong>之後</strong>執行)。 所有屬性名稱都可以通過名稱作為環境變量取數。</p> | ||
</div> |
8 changes: 8 additions & 0 deletions
8
...urces/org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/help-scriptContent_pl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div> | ||
<p> | ||
Wykonuje plik skryptu mający na celu przygotowanie środowiska. W tym tworzenie folderów, kopiowanie plików itd.<br/> | ||
Podaj zawartość pliku skryptu. <br/> | ||
Możesz użyć powyższych właściwości jako zmienne. <br/> | ||
Jednakże dodawanie lub nadpisywanie zmiennych środowiskowych w skrypcie nie ma wpływu na proces budowania projektu. | ||
</p> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
...urces/org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/help-scriptContent_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div> | ||
<p> | ||
執行旨在設置環境的腳本文件,例如創建文件夾、複製文件等。<br/>給出腳本文件內容。 <br/>您可以將上述屬性用作變量。 <br/>但是,在腳本中添加或覆蓋環境變量不會對構建作業產生任何影響。 | ||
</p> | ||
</div> |
9 changes: 9 additions & 0 deletions
9
...rces/org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/help-scriptFilePath_pl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div> | ||
<p> | ||
Wykonuje plik skryptu mający na celu przygotowanie środowiska. W tym tworzenie folderów kopiowanie plików itd.<br/> | ||
Podaj ścieżkę do skryptu. <br/> | ||
Ścieżka pliku może być ścieżką bezwzględną lub względną do obszaru roboczego (proces jest wykonywany po pobraniu SCM).<br/> | ||
Możesz użyć powyższych właściwości jako zmienne. <br/> | ||
Jednakże dodawanie lub nadpisywanie zmiennych środowiskowych w skrypcie nie ma wpływu na proces budowania projektu. | ||
</p> | ||
</div> |
7 changes: 7 additions & 0 deletions
7
...rces/org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/help-scriptFilePath_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div> | ||
<p> | ||
執行旨在設置環境的腳本文件,例如創建文件夾、複製文件等。<br/> | ||
給出腳本文件路徑。 <br/>文件路徑可以是絕對路徑,也可以是相對於工作空間的路徑 (該過程在單片機檢出後執行)。 | ||
<br/>您可以將上述屬性用作變量。 <br/>但是,在腳本中添加或覆蓋環境變量對構建作業沒有影響。 | ||
</p> | ||
</div> |
52 changes: 52 additions & 0 deletions
52
.../org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/help-secureGroovyScript_pl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<div> | ||
<p> | ||
Weryfikuje skrypt Groovy'iego i dodaje go środowiska. | ||
Ten skrypt jest dostarczany przez wtyczkę <a href="https://plugins.jenkins.io/script-security">Script Security (Bezpieczeństwo Skryptów)</a>. | ||
Oba tryby pracy skryptów Zatwierdzone Skrypty(Approved Script), jak i te z Piaskownicy Groovy'jego (Groovy Sandbox) są dostępne. | ||
Dla nowych skryptów zaleca się użycie trybu Piaskownicy (Sandbox). | ||
</p> | ||
|
||
<h3>Użycie</h3> | ||
<p> | ||
Skrypt groovy musi zwracać obiekt Java typu <code>Map<String,String></code>. | ||
Możesz uzyskać dostęp do parametrów i innych zmiennych środowiskowych za pomocą zmiennych z poziomu skryptu Groovy. | ||
W skryptach możesz również użyć następujących zmiennych. | ||
</p> | ||
<dl> | ||
<dt>currentJob</dt> | ||
<dd>Bieżąca instancja <a href="https://javadoc.jenkins.io/hudson/model/Job.html">hudson.model.Job</a>.</dd> | ||
<dt>currentBuild</dt> | ||
<dd>Bieżąca instancja <a href="https://javadoc.jenkins.io/hudson/model/Run.html">hudson.model.Run</a>.</dd> | ||
<dt>currentListener</dt> | ||
<dd>Bieżący instancja <a href="https://javadoc.jenkins.io/hudson/model/TaskListener.html">hudson.model.TaskListener</a>, | ||
która może być używana do rejestrowania danych. | ||
</dd> | ||
<dt>out</dt> | ||
<dd>Inna instancja logowania jako | ||
<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintStream.html">java.io.PrintStream</a>. | ||
Zaleca się użycie <code>currentListener</code> zamiast tej zmiennej, gdy jest to możliwe. | ||
</dd> | ||
</dl> | ||
<p> | ||
Wszystkie wymienione zmienne mogą być używane w obu trybach pracy. | ||
W trybie Piaskownicy (Sandbox) dostęp do poszczególnych pól i metod może wymagać dodatkowego akceptacji administratora. | ||
</p> | ||
|
||
<h3>Przykłady</h3> | ||
<p> | ||
Na przykład Groovy może tworzyć zmienne środowiskowe na podstawie parametrów wejściowych przekazanych przez użytkownika. | ||
Skrypt poniżej dodaje zmienną środowiskową <code>COMPUTE_VAR</code> zgodnie z wartością parametru CASE. | ||
</p> | ||
<pre><code> | ||
def stringValue="StRinG"; | ||
if ("upper".equals(CASE)){ | ||
def map = ["COMPUTE_VAR": stringValue.toUpperCase()] | ||
return map | ||
} else if ("lower".equals(CASE)){ | ||
def map = ["COMPUTE_VAR": stringValue.toLowerCase()] | ||
return map | ||
} else { | ||
return null; | ||
} | ||
</code></pre> | ||
</div> |
50 changes: 50 additions & 0 deletions
50
.../org/jenkinsci/plugins/envinject/EnvInjectJobPropertyInfo/help-secureGroovyScript_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<div> | ||
<p> | ||
評估 Groovy 腳本並將結果注入到環境中。 | ||
此腳本由 <a href="https://plugins.jenkins.io/script-security">Script Security Plugin</a> 提供支持; | ||
Approved Script 和 Groovy Sandbox 模式均可用。 | ||
對於新腳本,建議使用 Sandbox 模式。 | ||
</p> | ||
|
||
<h3>用法</h3> | ||
<p> | ||
Groovy 腳本必須返回一個 <code>Map<String,String></code> Java 對象。 | ||
您可以通過 Groovy 腳本中的變量取參數和其他環境變量。 | ||
在腳本中,您還可以使用以下變量。 | ||
</p> | ||
<dl> | ||
<dt>currentJob</dt> | ||
<dd>當前 <a href="https://javadoc.jenkins.io/hudson/model/Job.html">hudson.model.Job</a> 實例。</dd> | ||
<dt>currentBuild</dt> | ||
<dd>當前 <a href="https://javadoc.jenkins.io/hudson/model/Run.html">hudson.model.Run</a> 實例。</dd> | ||
<dt>currentListener</dt> | ||
<dd>當前 <a href="https://javadoc.jenkins.io/hudson/model/TaskListener.html">hudson.model.TaskListener</a> 實例,可用於記錄目的。 | ||
</dd> | ||
<dt>out</dt> | ||
<dd>另一個記錄實例為 <a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintStream.html">java.io.PrintStream</a>。 | ||
建議盡可能使用 <code>currentListener</code> 代替此變量。 | ||
</dd> | ||
</dl> | ||
<p> | ||
所有列出的變量都可以在兩種腳本模式下使用。 | ||
在沙盒模式下,對特定字段和方法的取數可能需要額外的批准。 | ||
</p> | ||
|
||
<h3>例子</h3> | ||
<p> | ||
例如,Groovy 可以根據用戶輸入參數計算環境變量。 | ||
下面的腳本根據 CASE 參數值注入 <code>COMPUTE_VAR</code> 環境變量。 | ||
</p> | ||
<pre><code> | ||
def stringValue="StRinG"; | ||
if ("upper".equals(CASE)){ | ||
def map = ["COMPUTE_VAR": stringValue.toUpperCase()] | ||
return map | ||
} else if ("lower".equals(CASE)){ | ||
def map = ["COMPUTE_VAR": stringValue.toLowerCase()] | ||
return map | ||
} else { | ||
return null; | ||
} | ||
</code></pre> | ||
</div> |
2 changes: 2 additions & 0 deletions
2
...main/resources/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty/config_pl.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
unsetEnvVars=Wy\u0142\u0105cz globalne zmienne \u015brodowiskowe | ||
propertiesFilePath=\u015acie\u017cka do pliku w\u0142a\u015bciwo\u015bci |
2 changes: 2 additions & 0 deletions
2
...main/resources/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty/config_zh.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
unsetEnvVars=\u53d6\u6d88\u8a2d\u7f6e\u7cfb\u7d71\u74b0\u5883\u8b8a\u91cf | ||
propertiesFilePath=\u5c6c\u6027\u6587\u4ef6\u8def\u5f91 |
4 changes: 4 additions & 0 deletions
4
...main/resources/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty/global_zh.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
globalPasswords=\u5168\u5c40\u5bc6\u78bc | ||
globalPasswordList=\u5168\u5c40\u5bc6\u78bc\u5217\u8868 | ||
name=\u59d3\u540d | ||
password=\u5bc6\u78bc |
6 changes: 6 additions & 0 deletions
6
src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty/help-name_pl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div> | ||
<p> | ||
Podaj nazwę z pod jaką będzie przechowywane hasło. <br/> | ||
Ta nazwa będzie dostępna dla zmiennej środowiskowej. | ||
</p> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty/help-name_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div> | ||
<p> | ||
為全局密碼值命名。 <br/>這個名字可以被環境變量取數。 | ||
</p> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
...ain/resources/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty/help-password_pl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div> | ||
<p> | ||
Podaj globalne hasło. | ||
</p> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
...ain/resources/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty/help-password_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div> | ||
<p> | ||
給出一個全局密碼值。 | ||
</p> | ||
</div> |
16 changes: 16 additions & 0 deletions
16
...ces/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty/help-propertiesFilePath_pl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div> | ||
<p> | ||
Określa lokalizację pliku właściwości z dodatkowymi zmiennymi do wprowadzenia. | ||
</p> | ||
<p> | ||
Jeśli ścieżka będzie względna, Jenkins najpierw spróbuje określić (rozwiązać) tę ścieżkę w odniesieniu do folderu 'HOME ' użytkownika zlokalizowanego na agentcie/kontrolerze. | ||
Jeśli nie znajdzie pliku, to spróbuje odnaleść go w katalogu roboczm agenta/kontrolera. | ||
To zachowanie jest nieintuicyjne i zostało opisane w tym wniosku <a href="https://issues.jenkins.io/browse/JENKINS-23666">JENKINS-23666</a>. | ||
</p> | ||
<p> | ||
<b>Uwaga!</b> Zmienne określone przez ten plik są buforowane i odświeżane | ||
tylko przy połączeniu z węzłem. | ||
Jeśli zmodyfikujesz ten wpis lub zawartość pliku dla agenta Jenkinsa, kontroler będzie musiał ponownie połączyć do tego agenta, aby wprowadzić zmiany. | ||
Jeśli zmodyfikujesz ustawienia dla kontrolera, musisz tylko go zrestartować. | ||
</p> | ||
</div> |
15 changes: 15 additions & 0 deletions
15
...ces/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty/help-propertiesFilePath_zh.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div> | ||
<p> | ||
指定要注入的附加變量的屬性文件的位置。 | ||
</p> | ||
<p> | ||
如果您指定相對路徑,那麼 Jenkins 將首先嘗試根據從/主用戶的 HOME 目錄解析此路徑。 | ||
如果它在那裡找不到文件,那麼它將嘗試對節點/從屬的工作目錄進行解析。 | ||
此行為可能會更改 (請參閱 <a href="https://issues.jenkins.io/browse/JENKINS-23666">JENKINS-23666</a>)。 | ||
</p> | ||
<p> | ||
<b>警告!</b> 此文件指定的變量僅在節點連接時被緩存和刷新。 | ||
如果您修改此條目或 Jenkins 從站/代理的文件內容,則需要將此從站/代理重新連接到主站以應用更改。 | ||
如果修改 Master 節點的設置,則必須重新啟動 master 節點。 | ||
</p> | ||
</div> |
6 changes: 6 additions & 0 deletions
6
...n/resources/org/jenkinsci/plugins/envinject/EnvInjectPasswordWrapper/config_zh.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
globalPasswords=\u5168\u5c40\u5bc6\u78bc | ||
jobPasswords=\u4f5c\u696d\u5bc6\u78bc | ||
passwordsList=\u5bc6\u78bc\u5217\u8868 | ||
name=\u59d3\u540d | ||
password=\u5bc6\u78bc | ||
maskPassword=\u63a9\u78bc\u5bc6\u78bc\u53c3\u6578 |
5 changes: 5 additions & 0 deletions
5
...sources/org/jenkinsci/plugins/envinject/EnvInjectPluginConfiguration/config_zh.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
securitySettings=EnvInject \u63d2\u4ef6\u7684\u5b89\u5168\u8a2d\u7f6e | ||
hideInjectedVars.title=\u4e0d\u986f\u793a\u6ce8\u5165\u8b8a\u91cf | ||
enablePermissions.title=\u555f\u7528\u6b0a\u9650 | ||
enableLoadingFromMaster.title=\u555f\u7528\u5f9e master \u52a0\u8f09\u6587\u4ef6 | ||
warning=\u8b66\u544a\uff01 \u4e0d\u5efa\u8b70\u555f\u7528\u6b64\u9078\u9805\uff0c\u8acb\u53c3\u95b1\u6587\u6a94\u3002 |
Oops, something went wrong.