Skip to content
Snippets Groups Projects
Commit 8112cf42 authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Merge branch 'dev' into 'master'

Dev

See merge request !30
parents c1a9c110 aaa9f8f9
Branches
Tags
1 merge request!30Dev
...@@ -125,9 +125,28 @@ public class Deployer ...@@ -125,9 +125,28 @@ public class Deployer
// Get the hash of the currently deployed graph and compare it with the hash of the graph to be deployed // Get the hash of the currently deployed graph and compare it with the hash of the graph to be deployed
files.ForEach((path) => currentRun.TryAdd(graphId, HashUtil.GetFileHash(path))); files.ForEach((path) => currentRun.TryAdd(graphId, HashUtil.GetFileHash(path)));
var deployedGraph = deployedGraphsList.FirstOrDefault((g) => g.Uri == graphId); var deployedGraph = deployedGraphsList.FirstOrDefault((g) => g.Uri == graphId);
var hasChanged = deployedGraph is null || !deployedGraph.FileHashes.Contains(currentRun[graphId]) || opts.Redeploy; var hasChanged = deployedGraph is null || !deployedGraph.FileHashes.Contains(currentRun[graphId]) || opts.Redeploy;
if(hasChanged)
{
_logger.LogDebug("The graph hase changed");
} else
{
_logger.LogDebug("The graph has not changed");
}
if(deployedGraph is null)
{
_logger.LogDebug("deployedGraph is null");
} else {
_logger.LogDebug("Deployed hash: {hash}", string.Join(',', deployedGraph.FileHashes));
}
_logger.LogDebug("Incoming hash: {hash}", currentRun[graphId]);
_logger.LogDebug("Redeploy: {redeploy}", opts.Redeploy);
// Deploy the graph if it has changed or if the redeploy flag is set // Deploy the graph if it has changed or if the redeploy flag is set
if (hasChanged) if (hasChanged)
{ {
......
Output @ a5abb9b0
Subproject commit a5abb9b05d3ed65cb1bc82e9fac08a9bf3392b11
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"IsEnabled": true, "IsEnabled": true,
"WorkingFolder": "./Output/", "WorkingFolder": "./Output/",
"Logger": { "Logger": {
"LogLevel": "Information", "LogLevel": "Debug",
"LogHome": "./Logs" "LogHome": "./Logs"
}, },
"GitLab": { "GitLab": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment