-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f402e3
commit f26f0d8
Showing
5 changed files
with
138 additions
and
38 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
Content/Z_Resources/Snippets/text/checks-prerequisites.flsnp
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,40 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd"> | ||
<body> | ||
<h2>Prerequisites</h2> | ||
<ol> | ||
<li>Ensure that you have correctly specified your <a href="../../../workflows/liquibase-pro/how-to-apply-your-liquibase-pro-license-key.htm"><MadCap:variable name="General.LBPro" /> license key</a>.</li> | ||
<li>Ensure that the <code class="language-text">--checks-scope</code> parameter includes the scope of this check.</li> | ||
</ol> | ||
<p>For example:</p> | ||
<div class="js-tabs"> | ||
<ul class="js-tablist" data-hx="h3"> | ||
<li class="js-tablist__item"><a href="#cli_example_prereq" id="label_cli_example_prereq" class="js-tablist__link">CLI</a> | ||
</li> | ||
<li class="js-tablist__item"><a href="#flow_example_prereq" id="label_flow_example_prereq" class="js-tablist__link">Flow</a> | ||
</li> | ||
<li class="js-tablist__item"><a href="#properties_file_example_prereq" id="label_properties_file_example_prereq" class="js-tablist__link"><code>liquibase.properties</code></a> | ||
</li> | ||
<li class="js-tablist__item"><a href="#java_opts_example_prereq" id="label_java_opts_example_prereq" class="js-tablist__link"><code>JAVA_OPTS</code></a> | ||
</li> | ||
<li class="js-tablist__item"><a href="#envar_example_prereq" id="label_envar_example_prereq" class="js-tablist__link">Environment variable</a> | ||
</li> | ||
</ul> | ||
<div id="cli_example_prereq" class="js-tabcontent"><pre xml:space="preserve"><code class="language-text">--license-key=<string></code></pre><pre xml:space="preserve"><code class="language-text">--checks-scope=<string></code></pre> | ||
</div> | ||
<div id="flow_example_prereq" class="js-tabcontent"><pre xml:space="preserve"><code class="language-text">globalArgs: { license-key: "<string>" } | ||
cmdArgs: { checks-scope: "<string>" }</code></pre> | ||
</div> | ||
<div id="properties_file_example_prereq" class="js-tabcontent"><pre xml:space="preserve"><code class="language-text">liquibase.licenseKey: <string> | ||
liquibase.command.checksScope: <string></code></pre><pre xml:space="preserve"><code class="language-text">liquibase.licenseKey: <string> | ||
liquibase.command.checks.run.checksScope: <string></code></pre> | ||
</div> | ||
<div id="java_opts_example_prereq" class="js-tabcontent"><pre xml:space="preserve"><code class="language-text">JAVA_OPTS=-Dliquibase.licenseKey=<string> -Dliquibase.command.checksScope=<string></code></pre><pre xml:space="preserve"><code class="language-text">JAVA_OPTS=-Dliquibase.licenseKey=<string> -Dliquibase.command.checks.run.checksScope=<string></code></pre> | ||
</div> | ||
<div id="envar_example_prereq" class="js-tabcontent"><pre xml:space="preserve"><code class="language-text">LIQUIBASE_LICENSE_KEY=<string> | ||
LIQUIBASE_COMMAND_CHECKS_SCOPE=<string></code></pre><pre xml:space="preserve"><code class="language-text">LIQUIBASE_LICENSE_KEY=<string> | ||
LIQUIBASE_COMMAND_CHECKS_RUN_CHECKS_SCOPE=<string></code></pre> | ||
</div> | ||
</div> | ||
</body> | ||
</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,38 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd"> | ||
<head> | ||
</head> | ||
<body> | ||
<h3>Enable</h3> | ||
<p MadCap:conditions="checks-use.default-enabled">This check is enabled by default. To verify that it is currently enabled, run the <code><MadCap:xref href="../../../commands/quality-checks/subcommands/show.htm">show</MadCap:xref></code> command:</p><pre xml:space="preserve" MadCap:conditions="checks-use.default-enabled"><code class="language-text">liquibase checks show --check-name=<string></code></pre> | ||
<p MadCap:conditions="checks-use.default-disabled">This check is disabled by default. To enable it, run the <code><MadCap:xref href="../../../commands/quality-checks/subcommands/enable.htm">enable</MadCap:xref></code> command:</p><pre xml:space="preserve" MadCap:conditions="checks-use.default-disabled"><code class="language-text">liquibase checks enable --check-name=<string></code></pre> | ||
<p MadCap:conditions="checks-use.must-copy">When you try to enable the check, <MadCap:variable name="General.Liquibase" /> displays the following message:</p><pre xml:space="preserve" MadCap:conditions="checks-use.must-copy"><code class="language-text">This check can not be enabled directly because one or more fields does not have a default value. Create a copy of this check and initiate the customization workflow.</code></pre> | ||
<h3>Customize</h3> | ||
<p MadCap:conditions="checks-use.settings-static">This check is static, meaning it does not have any customization settings.</p> | ||
<p MadCap:conditions="checks-use.settings-dynamic">This check is dynamic, meaning you can customize its settings.</p> | ||
<p MadCap:conditions="checks-use.must-copy">However, you cannot directly customize this check. Instead, you must use the <code><MadCap:xref href="../../../commands/quality-checks/subcommands/copy.htm">copy</MadCap:xref></code> command to create a copy of the check which you can then customize:</p><pre xml:space="preserve" MadCap:conditions="checks-use.must-copy"><code class="language-text">liquibase checks copy --check-name=<string></code></pre> | ||
<p MadCap:conditions="checks-use.must-copy">Follow the steps in the CLI to give your new check a useful name. By default, the name of the copy is <code><CheckName>1</code>.</p> | ||
<p MadCap:conditions="checks-use.settings-dynamic">Run the <code><MadCap:xref href="../../../commands/quality-checks/subcommands/customize.htm">customize</MadCap:xref></code> command:</p><pre xml:space="preserve" MadCap:conditions="checks-use.settings-dynamic"><code class="language-text">liquibase checks customize --check-name=<string></code></pre> | ||
<p MadCap:conditions="checks-use.settings-dynamic">Follow the steps in the CLI to set new values. When finished, you can run the show command again to verify that your configuration is correct:</p><pre xml:space="preserve" MadCap:conditions="checks-use.settings-dynamic"><code class="language-text">liquibase checks show --check-name=<string></code></pre> | ||
<h3>Run</h3> | ||
<p>To run the check, use the <code><MadCap:xref href="../../../commands/quality-checks/subcommands/run.htm">run</MadCap:xref></code> command:</p> | ||
<div class="js-tabs"> | ||
<ul class="js-tablist" data-hx="h3"> | ||
<li class="js-tablist__item"><a href="#cli_example_use" id="label_cli_example_use" class="js-tablist__link">CLI example</a> | ||
</li> | ||
<li class="js-tablist__item"><a href="#flow_example_use" id="label_flow_example_use" class="js-tablist__link">Flow example</a> | ||
</li> | ||
</ul> | ||
<div id="cli_example_use" class="js-tabcontent"><pre xml:space="preserve"><code class="language-cli">liquibase checks run --check-name=<string></code></pre> | ||
</div> | ||
<div id="flow_example_use" class="js-tabcontent"><pre xml:space="preserve"><code class="language-yaml">stages: | ||
Default: | ||
actions: | ||
- type: liquibase | ||
command: checks run | ||
cmdArgs: {check-name: <string>}</code></pre> | ||
<p>And then run the <code>flow</code> command on your flow file:</p><pre xml:space="preserve"><code class="language-text">liquibase flow</code></pre> | ||
</div> | ||
</div> | ||
</body> | ||
</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
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
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,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<CatapultConditionTagSet> | ||
<ConditionTag | ||
Comment="Customization available" | ||
Name="settings-dynamic" | ||
BackgroundColor="#ff00fb" | ||
OriginalName="settings-dynamic" /> | ||
<ConditionTag | ||
Comment="Check is disabled by default" | ||
Name="default-disabled" | ||
BackgroundColor="#00ffff" | ||
OriginalName="default-disabled" /> | ||
<ConditionTag | ||
BackgroundColor="#a607c8" | ||
Name="settings-static" | ||
Comment="Customization not available" | ||
OriginalName="settings-static" /> | ||
<ConditionTag | ||
BackgroundColor="#ffa500" | ||
Name="must-copy" | ||
Comment="Must copy in order to customize" | ||
OriginalName="must-copy" /> | ||
<ConditionTag | ||
BackgroundColor="#7cfc00" | ||
Name="default-enabled" | ||
Comment="Check is enabled by default" | ||
OriginalName="default-enabled" /> | ||
</CatapultConditionTagSet> |