gluon-cli
Version:
Gluon cli: the gitflow and CI tool
442 lines (321 loc) • 11.8 kB
HTML
<html>
<head>
<meta charset="utf-8">
<title>Reading log execution of Gluon</title>
<link rel="stylesheet" type="text/css" href="../../css/main.css">
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha256-/SIrNqv8h6QGKDuNoLGA4iret+kyesCkHGzVUUV0shc=" crossorigin="anonymous"></script>
</head>
<body>
<section class="docs">
<aside>
<div class="logoContainer">
<a href="../../index.html">
<img src="../../images/logo.svg" class="logo" />
Gluon
</a>
</div>
<ul class="main_menu">
<li>
<h4>General</h4>
<a href="../../users/get_started.html">How to install</a>
<a href="../../users/get_started010whatis.html">What is gluon?</a>
</li>
<li>
<h4>Tutorials</h4>
<ul>
<li>
<a href="../../users/tutorials/000init.html">Start working with Gluon!</a>
</li>
<li>
<a href="../../users/tutorials/010feature.html">Working with Features</a>
</li>
<li>
<a href="../../users/tutorials/020release.html">The Release process</a>
</li>
<li>
<a href="../../users/tutorials/030hotfix.html">Make a Hotfix</a>
</li>
<li>
<a href="../../users/tutorials/040merger.html">Merging master to develop</a>
</li>
<li>
<a href="../../users/tutorials/050conflicts.html">Resolving conflicts with git</a>
</li>
<li>
<a href="../../users/tutorials/060consolidate.html">Consolidate dependencies of master</a>
</li>
</ul>
</li>
<li>
<h4>Guides</h4>
<ul>
<li>
<a href="../../users/guides/001versioning.html">Versions between branches</a>
</li>
<li>
<a href="../../users/guides/002readlogoutput.html" class="selected">Reading log execution of Gluon</a>
</li>
<li>
<a href="../../users/guides/003componentlifecycle.html">Component lifecycle using Gluon</a>
</li>
</ul>
</li>
<li>
<h4>API</h4>
<h5>FLOWS</h5>
<ul>
</ul>
<h5>STEPS</h5>
<ul>
</ul>
</li>
</ul>
</aside>
<article>
<h1 id="reading-log-execution-of-gluon">Reading log execution of Gluon</h1>
<p>Is incredible but all the letters that come up very fast when you execute any command means something!!. let's see!</p>
<pre><code class="lang-bash">➜ cells-icons git:(develop) cells start
[16:55:33] Execution contexts: [ develop, component ]
[16:55:35] Starting flow: [ start ], steps: [ start, setVersion, push ]
[16:55:36]
Starting | start one gitFlow branch | [ develop::start ]
[16:55:36] Waiting for git ...
[16:55:36] git ( any ) is required -> git is installed ... OK
? What do you want to start? (Use arrow keys)
❯ new feature
new release
new master merger
</code></pre>
<p>Line by line</p>
<pre><code>[16:55:33] Execution contexts: [ develop, component ]
</code></pre><p>Shows all the contexts of this directory in this case you are in a component in develop branch, all the steps will be executed in all the contexts</p>
<pre><code>[16:55:35] Starting flow: [ start ], steps: [ start, setVersion, push ]
</code></pre><p><strong>start</strong> flow has three steps -> start, setVersion, push</p>
<pre><code> Starting | start one gitFlow branch | [ develop::start ]
</code></pre><p>This is the beginning of the step execution</p>
<pre><code>[16:55:36] Waiting for git ...
[16:55:36] git ( any ) is required -> git is installed ... OK
</code></pre><p>System checks to see if all the tools and dependencies are installed ok.</p>
<pre><code>? What do you want to start? (Use arrow keys)
❯ new feature
new release
new master merger
</code></pre><p>Ask to choose your selection -> we choose new feature</p>
<pre><code>? What do you want to start? new feature
[17:00:56] check stage running...
[17:00:58] git fetch -p executed: OK
Already up-to-date.
[17:00:59] git pull executed: OK
[17:00:59] run stage running...
? Write the name of the new feature (feature/ is already appended)
</code></pre><pre><code>[17:00:56] check stage running...
</code></pre><p>Phase check is running...</p>
<pre><code>[17:00:58] git fetch -p executed: OK
</code></pre><p>This line means that git fetch -p command was executed OK, this es always the same</p>
<pre><code>Already up-to-date.
[17:00:59] git pull executed: OK
</code></pre><p>git pull was executed and -> Already up-to-date. was the output... Note: de output of a command always is shown before command executed: OK line.</p>
<pre><code>? Write the name of the new feature (feature/ is already appended)
</code></pre><p>Lets continue writing the feature name.</p>
<pre><code>? Write the name of the new feature (feature/ is already appended) tutorial
[17:05:02] git branch feature/tutorial executed: OK
Switched to branch 'feature/tutorial'
[17:05:03] git checkout feature/tutorial executed: OK
</code></pre><p>Branch feature/tutorial is created and checkout.</p>
<pre><code>[17:05:03] emit stage running...
[17:05:03]
Finished | start one gitFlow branch - 09 m 26 s 824 ms
</code></pre><p>Execution of develop::start ends</p>
<pre><code>[17:05:03] Allowed not implemented step: [ component::start ]
[17:05:03] Execution of step "setVersion" is excluded for context "develop"
</code></pre><p>Step component::start is not implemented but is allowed and develop::setVersion has been excluded of execution</p>
<pre><code>[17:05:03]
Starting | Write version on project json file | [ component::setVersion ]
[17:05:03] run stage running...
</code></pre><p>component::setVersion starts execution</p>
<pre><code>[17:05:03] Initial version on bower.json -> 3.1.7-beta.0
[17:05:03] Applying start action on feature branch using prerelease strategy...
0.1.14
0.10.1
0.10.5-beta.0
0.10.6-beta.0
0.10.7-beta.0
0.11.1-beta.0
0.12.0
0.12.0-beta.0
0.13.0-beta.0
0.13.1-beta.0
0.14.1-beta.0
0.15.0
0.17.0-beta.0
1.0.0
1.0.1
1.0.10
1.0.11
1.0.12
1.0.13
1.0.14
1.0.15
1.0.16
1.0.17
1.0.18
1.0.19
1.0.2
1.0.20
1.0.21
1.0.22
1.0.23
1.0.24
1.0.25
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8
1.0.9
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.10
1.2.11
1.2.11-beta.0
1.2.11-beta.1
1.2.11-beta.2
1.2.11-beta.3
1.2.11-beta.4
1.2.11-beta.5
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.6-beta.1
1.2.6-beta.3
1.2.6-hotfix.0
1.2.6-hotfix.2
1.2.7
1.2.8
1.2.9
1.2.9-alpha.0
1.3.0
1.4.0
1.5.0
1.5.0-beta.0
1.5.0-beta.1
1.5.0-beta.2
1.6.0
1.6.0-beta.0
1.6.0-beta.1
1.6.1-beta.0
1.6.1-beta.1
1.7.0
1.7.1
1.7.2
1.7.3
1.7.4
1.7.4-beta.0
1.7.4-beta.1
2.0.0
2.0.1
2.0.1-beta.0
2.0.2
2.0.3
2.0.3-.0
2.0.3-1
2.0.3-2
2.1.0
2.2.1
2.2.1-0
2.2.2
2.3.1
2.3.1-2
2.3.10
2.3.2
2.3.3
2.3.4
2.3.5
2.3.6
2.3.6-0
2.3.6-1
2.3.7
2.3.8
2.3.8-beta.0
2.3.9
3.0.0
3.0.0-0
3.0.0-1
3.0.1
3.0.1-beta.0
3.0.2
3.0.2-beta.0
3.1.0
3.1.0-3
3.1.0-4
3.1.2
3.1.3-beta.0
3.1.3-beta.1
3.1.3-beta.2
3.1.6-beta.0
3.2.0-beta.0
3.2.0-beta.1
3.2.0-beta.2
[17:05:03] git tag -l executed: OK
</code></pre><p>setVersion search for pre_ tags in order to get the last version of all branches</p>
<pre><code>[17:05:03] version: 3.1.7-beta.0 strategy: prerelease tag: alpha
[17:05:03] Final version on bower.json -> 3.1.7-alpha.0
</code></pre><p>Final version calculated using strategy prerelease with tag alpha.</p>
<pre><code>[feature/tutorial 2528b14] chore(): change version file: 3.1.7-alpha.0
1 file changed, 1 insertion(+), 1 deletion(-)
[17:05:03] git commit -m chore(): change version file: 3.1.7-alpha.0 . executed: OK
[17:05:03] git tag pre_3.1.7-alpha.0 executed: OK
</code></pre><p>commit this change but not push it in this section.</p>
<pre><code>[17:05:03]
Finished | Write version on project json file - 055 ms
[17:05:03]
Starting | git flow push | [ develop::push ]
</code></pre><p>Obvious ;).</p>
<pre><code>[17:05:03] run stage running...
remote:
remote: Create pull request for feature/tutorial:
remote: https://globaldevtools.bbva.com/bitbucket/projects/CTOOL/repos/cells-icons/compare/commits?sourceBranch=refs/heads/feature/tutorial
remote:
To ssh://git@globaldevtools.bbva.com:7999/ctool/cells-icons.git
* [new branch] feature/tutorial -> feature/tutorial
Branch feature/tutorial set up to track remote branch feature/tutorial from origin.
[17:05:04] git push --set-upstream origin feature/tutorial executed: OK
</code></pre><p>set default upstream to your local branch</p>
<pre><code>Everything up-to-date
[17:05:05] git push --all executed: OK
To ssh://git@globaldevtools.bbva.com:7999/ctool/cells-icons.git
* [new tag] pre_3.1.7-alpha.0 -> pre_3.1.7-alpha.0
[17:05:07] git push --tags executed: OK
</code></pre><p>Push all changes and all tags</p>
<pre><code>[17:05:07]
Finished | git flow push - 04 s 375 ms
[17:05:07] Allowed not implemented step: [ component::push ]
[17:05:07] Flow [ start ] finished - 09 m 32 s 288 ms
[17:05:07] Total time - 09 m 33 s 668 ms
</code></pre><p>It's easy to see what is going on watching this log, the rule is: Execution log before executed command + result OK or KO...</p>
</article>
</section>
<script type="text/javascript" src="../../js/highlight.pack.js"></script>
<script>
hljs.initHighlightingOnLoad();
$(function(){
$('.toggle_section').on('click', function(ev) {
$(ev.currentTarget).parent('li').toggleClass('open');
});
});
</script>
</body>
</html>