{
  "runRoot": "C:\\SAMM-Deploy\\runs",
  "workspaceRoot": "C:\\SAMM-Deploy\\workspaces",
  "publicationRoot": "C:\\Inetpub\\vhosts\\softwaresamm.com\\publicaciones",
  "secretsFile": "C:\\SAMM-Deploy\\config\\secrets.json",
  "jira": {
    "baseUrl": "https://softwaresamm.atlassian.net",
    "statusName": "ON DEPLOYMENT",
    "emailSecret": "JiraEmail",
    "apiTokenSecret": "JiraApiToken",
    "timeoutSeconds": 60
  },
  "repositories": [
    { "name": "sammapi", "provider": "github", "remoteId": "softwaresamm/sammapi", "remoteUrl": "https://github.com/softwaresamm/sammapi.git", "baseBranch": "develop", "tagPrefix": "api", "comparisonUrlTemplate": "https://github.com/softwaresamm/sammapi/compare/{previousTag}...{tag}" },
    { "name": "sammnew", "provider": "github", "remoteId": "softwaresamm/sammnew", "remoteUrl": "https://github.com/softwaresamm/sammnew.git", "baseBranch": "develop", "tagPrefix": "snw", "comparisonUrlTemplate": "https://github.com/softwaresamm/sammnew/compare/{previousTag}...{tag}" },
    { "name": "sammweb", "provider": "gitlab", "remoteId": "group/sammweb", "remoteUrl": "https://gitlab.example/group/sammweb.git", "baseBranch": "develop", "tagPrefix": "swb", "comparisonUrlTemplate": "https://gitlab.example/group/sammweb/-/compare?from={previousTag}&to={tag}" },
    { "name": "sammreport", "provider": "gitlab", "remoteId": "group/sammreport", "remoteUrl": "https://gitlab.example/group/sammreport.git", "baseBranch": "develop", "tagPrefix": "swr", "comparisonUrlTemplate": "https://gitlab.example/group/sammreport/-/compare?from={previousTag}&to={tag}" },
    { "name": "sammdbobjects", "provider": "github", "remoteId": "softwaresamm/SAMM.DBObjects", "remoteUrl": "https://github.com/softwaresamm/SAMM.DBObjects.git", "baseBranch": "develop", "tagPrefix": "db", "comparisonUrlTemplate": "https://github.com/softwaresamm/SAMM.DBObjects/compare/{previousTag}...{tag}" }
  ],
  "releasePresentation": {
    "jiraUrlTemplate": "https://softwaresamm.atlassian.net/browse/{issue}",
    "applications": [
      { "id": "capadatos", "label": "capadatos", "displayVersionTemplate": "C{version}", "urlTemplate": "https://github.com/softwaresamm/SAMM.DBObjects/tree/develop/SAMM.DBObjects/SAMMAPI/Versions/Grupo2/{version}" },
      { "id": "samcore", "label": "samcore" },
      { "id": "sammapi", "label": "sammapi", "whatsAppLabel": "SammApi", "whatsAppConsolidated": true, "whatsAppComponentSource": "inventoryProjects", "displayVersionTemplate": "api{version}", "urlTemplate": "https://github.com/softwaresamm/sammapi/releases/tag/api{version}" },
      { "id": "sammnew", "label": "sammnew", "whatsAppLabel": "SammNew", "whatsAppConsolidated": true, "displayVersionTemplate": "snw{version}", "urlTemplate": "https://github.com/softwaresamm/sammnew/releases/tag/snw{version}" },
      { "id": "sammreport", "label": "Sammweb-reportes", "whatsAppConsolidated": true, "displayVersionTemplate": "swr{version}" },
      { "id": "samm_logica", "label": "samm_logica" },
      { "id": "technical-report", "label": "Technical Report", "whatsAppConsolidated": true, "displayVersionTemplate": "v{version}", "urlTemplate": "https://github.com/softwaresamm/IDAE.UTIL.TechnicalReport/releases/tag/v{version}" },
      { "id": "report-service", "label": "Report Service", "whatsAppConsolidated": true, "whatsAppVersionLayout": "inlineComponents" },
      { "id": "bulk-ots-download", "label": "BulkOtsDownload", "whatsAppConsolidated": true, "displayVersionTemplate": "v{version}", "urlTemplate": "https://github.com/softwaresamm/IDAE.UTIL.BulkOTSDownload/releases/tag/v{version}" },
      { "id": "app-2", "label": "APP 2.0", "whatsAppConsolidated": true, "urlTemplate": "https://github.com/softwaresamm/new-samm-app-tecnico/releases/tag/V.{version}" }
    ]
  },
  "solutions": [
    {
      "name": "sammapi", "displayName": "SammApi", "repository": "sammapi", "primaryProject": "sammapi", "releasePrefix": "api", "releaseApplicationIds": ["capadatos", "samcore", "sammnew", "sammreport", "samm_logica", "technical-report", "report-service", "bulk-ots-download", "app-2"], "packagePrefix": "actualizacionApi", "packageMode": "single", "publishOutput": "sammapi\\obj\\Release\\Package\\PackageTmp", "publishCommands": [ { "workingDirectory": ".", "filePath": "C:\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe", "arguments": ["sammapi\\SAMMAPI.csproj", "/t:Build", "/p:Configuration=Release", "/p:DeployOnBuild=true", "/p:WebPublishMethod=FileSystem", "/p:PublishUrl=publish\\sammapi"] } ], "archiveDirectoryTemplate": "API_{shortVersion}", "replaceAssemblyBinding": true,
      "projects": [
        { "name": "capadatos", "assemblyInfo": "capadatos\\Properties\\AssemblyInfo.vb", "paths": ["capadatos"] },
        { "name": "samcore", "assemblyInfo": "samcore\\Properties\\AssemblyInfo.cs", "paths": ["samcore"] },
        { "name": "sammapi", "assemblyInfo": "sammapi\\Properties\\AssemblyInfo.cs", "paths": ["sammapi"] }
      ],
      "sharedDllCommitPaths": ["SAMM\\referencias\\capadatos.dll", "SAMM\\referencias\\samcore.dll", "SAMM\\referencias\\samm_logica.dll"],
      "sites": [
        { "name": "publicado", "tier": "production", "environment": "single", "path": "C:\\Inetpub\\vhosts\\softwaresamm.com\\app2.softwaresamm.com\\sa_publicado", "url": "https://app2.softwaresamm.com/sa_publicado", "verificationUrl": "https://app2.softwaresamm.com/sa_publicado/api/login/echoping" },
        { "name": "testr", "tier": "test", "environment": "single", "path": "C:\\Inetpub\\vhosts\\softwaresamm.com\\dev.softwaresamm.com\\sa_testr", "url": "https://dev.softwaresamm.com/sa_testr", "verificationUrl": "https://dev.softwaresamm.com/sa_testr/api/login/echoping" },
        { "name": "test", "tier": "test", "environment": "single", "path": "C:\\Inetpub\\vhosts\\softwaresamm.com\\dev.softwaresamm.com\\sa_test", "url": "https://dev.softwaresamm.com/sa_test", "verificationUrl": "https://dev.softwaresamm.com/sa_test/api/login/echoping" }
      ]
    },
    {
      "name": "sammnew", "displayName": "SammNew", "repository": "sammnew", "primaryProject": "website", "releasePrefix": "snw", "releaseApplicationIds": ["capadatos", "samcore", "sammapi", "sammreport", "samm_logica", "technical-report", "report-service", "bulk-ots-download", "app-2"], "packagePrefix": "snw", "packageMode": "dual", "publishOutput": "website\\obj\\Release\\Package\\PackageTmp", "publishCommands": [ { "workingDirectory": ".", "filePath": "C:\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe", "arguments": ["website\\website.vbproj", "/t:Build", "/p:Configuration=Release", "/p:Platform=AnyCPU", "/p:DeployOnBuild=true", "/p:WebPublishMethod=FileSystem", "/p:PublishUrl=publish\\sammnew", "/p:PrecompileBeforePublish=true", "/p:EnableUpdateable=true"] } ], "archiveDirectoryTemplate": "snw_{shortVersion}", "replaceAssemblyBinding": true, "packageExclusions": ["App_GlobalResources"], "requiredPackageFiles": { "pub": ["bin\\App_GlobalResources.dll", "bin\\App_GlobalResources.compiled"] }, "preDeployRemovePaths": ["App_GlobalResources"],
      "actExclusions": ["archivos", "plantillas", "reportes", "ayuda", "imagenes\\interfaz", "imagenes\\reportes", "bin\\App_GlobalResources.dll", "bin\\App_GlobalResources.compiled"],
      "projects": [
        { "name": "samm_logica", "assemblyInfo": "Samm_Logica\\Properties\\AssemblyInfo.vb", "paths": ["Samm_Logica"] },
        { "name": "website", "assemblyInfo": "Website\\Properties\\AssemblyInfo.cs", "paths": ["Website"] }
      ],
      "sharedDllCommitPaths": ["SAMM\\referencias\\capadatos.dll", "SAMM\\referencias\\samcore.dll"],
      "sites": [
        { "name": "publicado", "tier": "production", "environment": "pub", "path": "C:\\Inetpub\\vhosts\\softwaresamm.com\\app2.softwaresamm.com\\sn_publicado", "url": "https://app2.softwaresamm.com/sn_publicado" },
        { "name": "testr", "tier": "test", "environment": "pub", "path": "C:\\Inetpub\\vhosts\\softwaresamm.com\\dev.softwaresamm.com\\sn_testr", "url": "https://dev.softwaresamm.com/sn_testr" },
        { "name": "test", "tier": "test", "environment": "act", "path": "C:\\Inetpub\\vhosts\\softwaresamm.com\\dev.softwaresamm.com\\sn_test", "url": "https://dev.softwaresamm.com/sn_test" }
      ]
    },
    {
      "name": "sammweb", "displayName": "Sammweb", "repository": "sammweb", "primaryProject": "samm_logica", "releasePrefix": "swb", "releaseApplicationIds": ["sammapi", "samcore", "capadatos", "app-2"], "packagePrefix": "swb", "packageMode": "dual", "publishOutput": "publish\\website", "publishCommands": [ { "workingDirectory": ".", "filePath": "C:\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe", "arguments": ["sammweb.sln", "/t:Website:Publish", "/p:Configuration=Release", "/p:PublishUrl=publish\\website"] } ], "archiveDirectoryTemplate": "swb_{shortVersion}", "replaceAssemblyBinding": false,
      "actExclusions": ["archivos", "plantillas", "reportes", "ayuda", "imagenes\\interfaz", "imagenes\\reportes", "bin\\App_GlobalResources.dll", "bin\\App_GlobalResources.compiled"],
      "projects": [ { "name": "samm_logica", "assemblyInfo": "samm_logica\\Properties\\AssemblyInfo.vb", "paths": ["samm_logica"] } ], "sharedDllCommitPaths": [],
      "sites": [ { "name": "publicado", "tier": "production", "environment": "pub", "path": "C:\\Inetpub\\vhosts\\softwaresamm.com\\app2.softwaresamm.com\\sw_publicado", "url": "https://app2.softwaresamm.com/sw_publicado" }, { "name": "test", "tier": "test", "environment": "act", "path": "C:\\Inetpub\\vhosts\\softwaresamm.com\\dev.softwaresamm.com\\sw_test", "url": "https://dev.softwaresamm.com/sw_test" } ]
    },
    {
      "name": "sammreport", "displayName": "Sammweb-reportes", "repository": "sammreport", "primaryProject": "samm_logica", "releasePrefix": "swr", "releaseApplicationIds": ["sammapi", "samcore", "capadatos", "app-2"], "packagePrefix": "swr", "packageMode": "dual", "publishOutput": "publish\\website", "publishCommands": [ { "workingDirectory": ".", "filePath": "C:\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe", "arguments": ["sammreport.sln", "/t:Website:Publish", "/p:Configuration=Release", "/p:PublishUrl=publish\\website"] } ], "archiveDirectoryTemplate": "swr_{shortVersion}", "replaceAssemblyBinding": false,
      "actExclusions": ["archivos", "plantillas", "reportes", "ayuda", "imagenes\\interfaz", "imagenes\\reportes", "bin\\App_GlobalResources.dll", "bin\\App_GlobalResources.compiled"],
      "projects": [ { "name": "samm_logica", "assemblyInfo": "samm_logica\\Properties\\AssemblyInfo.vb", "paths": ["samm_logica"] } ], "sharedDllCommitPaths": [],
      "sites": [ { "name": "publicado", "tier": "production", "environment": "pub", "path": "C:\\Inetpub\\vhosts\\softwaresamm.com\\app2.softwaresamm.com\\sr_publicado", "url": "https://app2.softwaresamm.com/sr_publicado" }, { "name": "testr", "tier": "test", "environment": "pub", "path": "C:\\Inetpub\\vhosts\\softwaresamm.com\\dev.softwaresamm.com\\sr_testr", "url": "https://dev.softwaresamm.com/sr_testr" }, { "name": "test", "tier": "test", "environment": "act", "path": "C:\\Inetpub\\vhosts\\softwaresamm.com\\dev.softwaresamm.com\\sr_test", "url": "https://dev.softwaresamm.com/sr_test" } ]
    }
  ],
  "buildPhases": [
    {
      "name": "SammApiIntermediate", "requiresAnySolution": ["sammapi", "sammnew"], "commands": [ { "repository": "sammapi", "workingDirectory": ".", "filePath": "C:\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe", "arguments": ["solution\\sammapi.sln", "/t:Restore", "/p:RestorePackagesConfig=true"] }, { "repository": "sammapi", "workingDirectory": ".", "filePath": "C:\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe", "arguments": ["solution\\sammapi.sln", "/t:Build", "/p:Configuration=Release"] } ],
      "transfers": [ { "sourceRepository": "sammapi", "source": "capadatos\\bin\\Release\\capadatos.dll", "destinationRepository": "sammnew", "destination": "SAMM\\referencias\\capadatos.dll" }, { "sourceRepository": "sammapi", "source": "samcore\\bin\\Release\\samcore.dll", "destinationRepository": "sammnew", "destination": "SAMM\\referencias\\samcore.dll" } ]
    },
    {
      "name": "SammNew", "requiresAnySolution": ["sammnew"], "commands": [ { "repository": "sammnew", "workingDirectory": ".", "filePath": "C:\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe", "arguments": ["SAMM\\Solution1\\sammnew.sln", "/t:Restore", "/p:RestorePackagesConfig=true"] }, { "repository": "sammnew", "workingDirectory": ".", "filePath": "C:\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe", "arguments": ["SAMM\\Solution1\\sammnew.sln", "/t:Build", "/p:Configuration=Release"] } ],
      "transfers": [ { "sourceRepository": "sammnew", "source": "Samm_Logica\\bin\\Release\\Samm_Logica.dll", "destinationRepository": "sammapi", "destination": "SAMM\\referencias\\Samm_Logica.dll" } ]
    },
    { "name": "SammApiFinal", "requiresAllSolutions": ["sammapi", "sammnew"], "commands": [ { "repository": "sammapi", "workingDirectory": ".", "filePath": "C:\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe", "arguments": ["solution\\sammapi.sln", "/t:Build", "/p:Configuration=Release"] } ], "transfers": [] }
  ],
  "database": {
    "apiSolution": "sammapi",
    "capDatosProject": "capadatos",
    "sqlSourcePath": "capadatos/sps",
    "dbObjectsRepository": "sammdbobjects",
    "dbObjectsVersionRoot": "SAMM.DBObjects\\SAMMAPI\\Versions\\Grupo2",
    "apiUsernameSecret": "ApiUsername",
    "apiPasswordSecret": "ApiPassword",
    "baselineBackup": {
      "connectionStringSecret": "BackupBuilderSqlConnectionString",
      "archiveDirectory": "C:\\Inetpub\\vhosts\\softwaresamm.com\\publicaciones\\backup",
      "archiveTemplate": "C{version}.zip",
      "backupFileName": "sw_basica.bak",
      "scratchDatabaseName": "sw_basica"
    },
    "targets": [
      {
        "name": "published",
        "tier": "production",
        "scriptsDestination": "C:\\Inetpub\\vhosts\\softwaresamm.com\\app2.softwaresamm.com\\sa_publicado\\scriptsBD",
        "apiUpdateEndpoint": "https://app2.softwaresamm.com/sa_publicado"
      },
      {
        "name": "test",
        "tier": "test",
        "scriptsDestination": "C:\\Inetpub\\vhosts\\softwaresamm.com\\app2.softwaresamm.com\\sa_idaetest\\scriptsBD",
        "apiUpdateEndpoint": "https://dev.softwaresamm.com/sa_test"
      }
    ]
  }
}
