Describe the bug
We got a breaking change in the nextMajor from Microsoft that prevents the current released version from being installed. Therefore we disabled the AppSourceCop and don't install the version to the nextMajor container anymore in this pipeline. But, it seems that as long as we got a version in the AppSourceCop.json the compiler tries to download the previousRelease.
the used yaml
please provide the yaml that you used. It helps you put the yaml like this:
the output
Also the complete output is necessary for us to see what is going on. Also use backtics:
2021-07-26T13:11:04.1016163Z ##[section]Starting: ALOps Compile App
2021-07-26T13:11:04.1247475Z ==============================================================================
2021-07-26T13:11:04.1247794Z Task : ALOps App Compiler
2021-07-26T13:11:04.1248189Z Description : Compile AL Extensions for Business Central
2021-07-26T13:11:04.1248435Z Version : 1.444.2571
2021-07-26T13:11:04.1248648Z Author : Hodor
2021-07-26T13:11:04.1248888Z Help : Compile a Business Central extension from AL code.
2021-07-26T13:11:04.1249264Z ==============================================================================
2021-07-26T13:11:06.3124419Z *** Validate configuration
2021-07-26T13:11:06.6294621Z *** Task Inputs:
2021-07-26T13:11:06.6350390Z
2021-07-26T13:11:06.6503061Z name value
2021-07-26T13:11:06.6505453Z ---- -----
2021-07-26T13:11:06.6507682Z usedocker True
2021-07-26T13:11:06.6510084Z fixed_tag
2021-07-26T13:11:06.6511996Z targetproject C:\azp\agent\_work\1\s\AMP\app\app.json
2021-07-26T13:11:06.6513968Z nav_computername
2021-07-26T13:11:06.6515916Z nav_serverinstance BC140
2021-07-26T13:11:06.6517950Z nav_tenant default
2021-07-26T13:11:06.6520157Z nav_ports_dev 7049
2021-07-26T13:11:06.6522048Z bc_username
2021-07-26T13:11:06.6523980Z bc_password
2021-07-26T13:11:06.6526219Z al_compiler_version 0.12.15355
2021-07-26T13:11:06.6528144Z ruleset .\Cop.ruleset.json
2021-07-26T13:11:06.6530172Z al_analyzer CodeCop,UICop
2021-07-26T13:11:06.6532171Z nav_app_version 2.9.0.58212
2021-07-26T13:11:06.6534178Z vsix_download_path
2021-07-26T13:11:06.6536092Z use_ssl False
2021-07-26T13:11:06.6538110Z download_test_symbols False
2021-07-26T13:11:06.6540344Z usecompression True
2021-07-26T13:11:06.6542302Z publish_artifact False
2021-07-26T13:11:06.6544262Z publishxlif False
2021-07-26T13:11:06.6546196Z failed_on_warnings False
2021-07-26T13:11:06.6548306Z app_file_suffix
2021-07-26T13:11:06.6550323Z updatebuildnumber True
2021-07-26T13:11:06.6552303Z setup_working_folder False
2021-07-26T13:11:06.6554346Z showmycode Keep
2021-07-26T13:11:06.6556347Z applicationinsightskey
2021-07-26T13:11:06.6558309Z printappmanifest True
2021-07-26T13:11:06.6560448Z output_alc_logs False
2021-07-26T13:11:06.6562469Z additionalprobingpaths
2021-07-26T13:11:06.6562789Z
2021-07-26T13:11:06.6583909Z
2021-07-26T13:11:06.6592502Z
2021-07-26T13:11:06.6746359Z *** For documentation, please visit : https://www.alops.be/documentation
2021-07-26T13:11:06.6751222Z
2021-07-26T13:11:06.9384375Z *** ALOps License:
2021-07-26T13:11:06.9402951Z * Licensed To: Cosmo Consult SSC GmbH
2021-07-26T13:11:06.9406020Z
2021-07-26T13:11:06.9509365Z *** Importing required PS-Functions
2021-07-26T13:11:07.5048375Z *** Initiate Docker Session
2021-07-26T13:11:07.5132469Z *** Direct PSSession to other container [c5d69def3944e15647e0f9709648276827d367ea8e434d9c176e27923375f299]
2021-07-26T13:11:07.6372694Z *** Container resolved to hostname [c5d69def3944]
2021-07-26T13:11:08.0217393Z *** Set Docker Container ErrorActionPreference = Stop
2021-07-26T13:11:09.5547076Z *** Import NAV/BC Management DLL's
2021-07-26T13:11:09.5552283Z *** Loading assemblies for ServiceTier [BC].
2021-07-26T13:11:09.8639959Z *** Loading assemblies from: [C:\program files\microsoft dynamics nav\180\service]
2021-07-26T13:11:09.8645109Z *** Selected module: [C:\program files\microsoft dynamics nav\180\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2021-07-26T13:11:09.8651337Z *** Loading module: [C:\program files\microsoft dynamics nav\180\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2021-07-26T13:11:09.8656161Z *** Selected module: [C:\program files\microsoft dynamics nav\180\service\Microsoft.Dynamics.Nav.Management.dll]
2021-07-26T13:11:09.8661448Z *** Loading module: [C:\program files\microsoft dynamics nav\180\service\Microsoft.Dynamics.Nav.Management.dll]
2021-07-26T13:11:09.8713199Z *** Setting up AL Compiler [ALLanguage]
2021-07-26T13:11:10.9911653Z *** Downloading AL Compiler [ALLanguage]
2021-07-26T13:11:10.9912296Z *** Get Extension from Local-Disk...[C:\Run\ALLanguage.vsix]
2021-07-26T13:11:10.9912731Z *** Resolving Path [C:\Run\ALLanguage.vsix]
2021-07-26T13:11:10.9913140Z *** VSIX Path Resolved: [C:\Run\ALLanguage.vsix]
2021-07-26T13:11:10.9913517Z *** Unpacking Extension to folder...
2021-07-26T13:11:16.5469878Z *** Loading Json Object: [c:\Run\Microsoft.al\al-ALLanguage\extension\package.json]
2021-07-26T13:11:16.5524150Z *** Using AL Compiler [vALLanguage] located [C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe]
2021-07-26T13:11:16.5597265Z ***
2021-07-26T13:11:16.5634328Z *** Working folder: C:\azp\agent\_work\1\s
2021-07-26T13:11:16.5654652Z ***
2021-07-26T13:11:16.5767121Z *** Copy Working folder to Docker Container: c5d69def3944e15647e0f9709648276827d367ea8e434d9c176e27923375f299
2021-07-26T13:11:16.5824666Z *** Docker Working Folder: c:\Run\DevOps\
2021-07-26T13:11:16.6155539Z *** Copy from [C:\azp\agent\_work\1\s] to [c:\Run\DevOps\]
2021-07-26T13:11:16.7117379Z *** Source File setup completed
2021-07-26T13:11:17.0533758Z *** Target Project: \AMP\app\app.json
2021-07-26T13:11:17.0539244Z *** Check for app.json files: c:\Run\DevOps\
2021-07-26T13:11:17.0543381Z *** Multiple projects found:
2021-07-26T13:11:17.0548666Z - C:\Run\DevOps\AMP\app
2021-07-26T13:11:17.0554686Z - C:\Run\DevOps\AMP\test
2021-07-26T13:11:17.0559105Z *** Retrieving App-Info [\AMP\app\app.json]
2021-07-26T13:11:17.0563478Z *** Loading Json Object: [c:\Run\DevOps\AMP\app\app.json]
2021-07-26T13:11:17.0568295Z * App.ID = 1b26c6f6-4689-4dc3-af55-f39e95a781f8
2021-07-26T13:11:17.0573079Z * App.Name = COSMO Advanced Manufacturing Pack
2021-07-26T13:11:17.0578279Z * App.Publisher = Cosmo Consult
2021-07-26T13:11:17.0583342Z * App.Version = 2.9.0.0
2021-07-26T13:11:17.0588330Z * App.Platform = 17.0.0.0
2021-07-26T13:11:17.0593295Z * App.Application = 17.2.0.0
2021-07-26T13:11:17.0597823Z ***
2021-07-26T13:11:17.0602379Z *** Setting Managed App Version [c:\Run\DevOps\AMP\app\app.json] => 2.9.0.58212
2021-07-26T13:11:17.0990268Z *** Final app.json:
2021-07-26T13:11:17.0990494Z {
2021-07-26T13:11:17.0990669Z "id": "1b26c6f6-4689-4dc3-af55-f39e95a781f8",
2021-07-26T13:11:17.0990919Z "name": "COSMO Advanced Manufacturing Pack",
2021-07-26T13:11:17.0991145Z "publisher": "Cosmo Consult",
2021-07-26T13:11:17.0991425Z "version": "2.9.0.58212",
2021-07-26T13:11:17.0991925Z "brief": "COSMO Advanced Manufacturing Pack offers manufacturing companies many additional functional areas in process, project and discrete manufacturing.",
2021-07-26T13:11:17.0992851Z "description": "Utilising the COSMO Advanced Manufacturing Pack, COSMO CONSULT supports both an enriched manufacturing environment and manufacturing requirements within one solution, bringing the benefits of cost reduction, economies of scale. Customer demands can now be met more cost-effectively.",
2021-07-26T13:11:17.0994289Z "privacyStatement": "https://www.cosmoconsult.com/data-protection",
2021-07-26T13:11:17.0994718Z "EULA": "https://cdn.cosmoconsult.com/EULA/COSMO_CONSULT_EULA_en.pdf",
2021-07-26T13:11:17.0994991Z "help": "https://docs.cosmoconsult.com",
2021-07-26T13:11:17.0995313Z "contextSensitiveHelpUrl": "https://docs.cosmoconsult.com/{0}/business-central/advanced-manufacturing-pack",
2021-07-26T13:11:17.0995711Z "url": "https://www.cosmoconsult.com/products/erp/microsoft-dynamics-365-business-central/industry-solutions/",
2021-07-26T13:11:17.0996026Z "logo": "../res/logo/amp-2020-marketing.png",
2021-07-26T13:11:17.0996224Z "dependencies": [
2021-07-26T13:11:17.0996405Z {
2021-07-26T13:11:17.0996652Z "id": "551d85cb-2152-4144-9464-a16791aff492",
2021-07-26T13:11:17.0996932Z "name": "COSMO Licensing",
2021-07-26T13:11:17.0997207Z "publisher": "Cosmo Consult",
2021-07-26T13:11:17.0997476Z "version": "1.1.0.0"
2021-07-26T13:11:17.0997695Z },
2021-07-26T13:11:17.0997857Z {
2021-07-26T13:11:17.0998265Z "id": "86a7fe06-b61b-4649-9c4f-12704e8282c5",
2021-07-26T13:11:17.0998565Z "publisher": "Cosmo Consult",
2021-07-26T13:11:17.0998847Z "name": "COSMO Graphical Extension",
2021-07-26T13:11:17.0999116Z "version": "2.9.0.0"
2021-07-26T13:11:17.0999317Z }
2021-07-26T13:11:17.0999484Z ],
2021-07-26T13:11:17.0999663Z "internalsVisibleTo": [
2021-07-26T13:11:17.0999841Z {
2021-07-26T13:11:17.1000095Z "id": "29a4ad9a-f696-4b67-8b4d-f293f71191e0",
2021-07-26T13:11:17.1000438Z "name": "COSMO Advanced Manufacturing Pack - Test Automations",
2021-07-26T13:11:17.1000763Z "publisher": "Cosmo Consult"
2021-07-26T13:11:17.1001003Z },
2021-07-26T13:11:17.1001179Z {
2021-07-26T13:11:17.1001490Z "id": "adf69b03-6956-451e-8c1a-2f0ee05fc6ad",
2021-07-26T13:11:17.1002087Z "name": "COSMO Graphical Project Planning Tests",
2021-07-26T13:11:17.1003269Z "publisher": "COSMO CONSULT Licensing GmbH"
2021-07-26T13:11:17.1003583Z }
2021-07-26T13:11:17.1003767Z ],
2021-07-26T13:11:17.1003939Z "screenshots": [
2021-07-26T13:11:17.1004053Z
2021-07-26T13:11:17.1004191Z ],
2021-07-26T13:11:17.1004388Z "platform": "17.0.0.0",
2021-07-26T13:11:17.1004572Z "application": "17.2.0.0",
2021-07-26T13:11:17.1004755Z "idRanges": [
2021-07-26T13:11:17.1004917Z {
2021-07-26T13:11:17.1005131Z "from": 5395707,
2021-07-26T13:11:17.1005346Z "to": 5396706
2021-07-26T13:11:17.1005540Z },
2021-07-26T13:11:17.1005700Z {
2021-07-26T13:11:17.1005892Z "from": 5012400,
2021-07-26T13:11:17.1006108Z "to": 5012629
2021-07-26T13:11:17.1006298Z },
2021-07-26T13:11:17.1006458Z {
2021-07-26T13:11:17.1006644Z "from": 5012650,
2021-07-26T13:11:17.1006869Z "to": 5012689
2021-07-26T13:11:17.1007061Z },
2021-07-26T13:11:17.1007220Z {
2021-07-26T13:11:17.1007406Z "from": 5012700,
2021-07-26T13:11:17.1007822Z "to": 5012799
2021-07-26T13:11:17.1008011Z },
2021-07-26T13:11:17.1008172Z {
2021-07-26T13:11:17.1008445Z "from": 5013400,
2021-07-26T13:11:17.1008671Z "to": 5013499
2021-07-26T13:11:17.1008859Z },
2021-07-26T13:11:17.1009018Z {
2021-07-26T13:11:17.1009205Z "from": 5013550,
2021-07-26T13:11:17.1009428Z "to": 5013899
2021-07-26T13:11:17.1009621Z },
2021-07-26T13:11:17.1009785Z {
2021-07-26T13:11:17.1009972Z "from": 5292332,
2021-07-26T13:11:17.1010205Z "to": 5292599
2021-07-26T13:11:17.1010394Z },
2021-07-26T13:11:17.1010548Z {
2021-07-26T13:11:17.1010746Z "from": 5292750,
2021-07-26T13:11:17.1010965Z "to": 5292799
2021-07-26T13:11:17.1011156Z },
2021-07-26T13:11:17.1011308Z {
2021-07-26T13:11:17.1011555Z "from": 5292850,
2021-07-26T13:11:17.1011864Z "to": 5292878
2021-07-26T13:11:17.1012057Z },
2021-07-26T13:11:17.1012212Z {
2021-07-26T13:11:17.1012408Z "from": 5292809,
2021-07-26T13:11:17.1012733Z "to": 5292839
2021-07-26T13:11:17.1013004Z },
2021-07-26T13:11:17.1013216Z {
2021-07-26T13:11:17.1013408Z "from": 5012851,
2021-07-26T13:11:17.1013684Z "to": 5012880
2021-07-26T13:11:17.1013883Z }
2021-07-26T13:11:17.1014031Z ],
2021-07-26T13:11:17.1014209Z "supportedLocales": [
2021-07-26T13:11:17.1014407Z "en-US",
2021-07-26T13:11:17.1014606Z "de-DE",
2021-07-26T13:11:17.1014804Z "de-AT",
2021-07-26T13:11:17.1015007Z "de-CH",
2021-07-26T13:11:17.1015210Z "es-ES",
2021-07-26T13:11:17.1015441Z "fr-FR",
2021-07-26T13:11:17.1015740Z "es-MX",
2021-07-26T13:11:17.1015947Z "es-CO",
2021-07-26T13:11:17.1016149Z "es-PE",
2021-07-26T13:11:17.1016335Z "en-AU",
2021-07-26T13:11:17.1016640Z "en-NZ",
2021-07-26T13:11:17.1016933Z "sv-SE",
2021-07-26T13:11:17.1017222Z "hu-HU"
2021-07-26T13:11:17.1017444Z ],
2021-07-26T13:11:17.1017712Z "features": [
2021-07-26T13:11:17.1018008Z "TranslationFile"
2021-07-26T13:11:17.1018216Z ],
2021-07-26T13:11:17.1018462Z "showMyCode": false,
2021-07-26T13:11:17.1018672Z "runtime": "6.0",
2021-07-26T13:11:17.1018914Z "applicationInsightsKey": "1860e6b4-baad-49c8-9747-30c490b7ced3"
2021-07-26T13:11:17.1019122Z }
2021-07-26T13:11:17.1019204Z
2021-07-26T13:11:17.1019323Z ***
2021-07-26T13:11:17.1747551Z *** Working Direcotry: [c:\Run\DevOps\]
2021-07-26T13:11:17.1751466Z *** Target Project: [\AMP\app\app.json]
2021-07-26T13:11:17.1757417Z *** Project Directory: [c:\Run\DevOps\AMP\app]
2021-07-26T13:11:17.1763215Z *** Overrule VSCode settings RuleSetPath: .\Cop.ruleset.json
2021-07-26T13:11:17.1768482Z *** Using Ruleset: [c:\Run\DevOps\AMP\app\Cop.ruleset.json]
2021-07-26T13:11:17.1773256Z ***
2021-07-26T13:11:17.3782609Z *** Resolve Docker Credentials
2021-07-26T13:11:17.3964580Z *** Setup BC Username/Password from Container info
2021-07-26T13:11:17.4015627Z *** Download Symbols
2021-07-26T13:11:18.5590888Z *** Working Dir: c:\Run\DevOps\
2021-07-26T13:11:18.5596210Z *** Loading assemblies from: [C:\program files\microsoft dynamics nav\180\service]
2021-07-26T13:11:18.5602128Z *** PackageCache path created [c:\Run\DevOps\PackageCache]
2021-07-26T13:11:18.5608068Z ***
2021-07-26T13:11:18.5615003Z *** Propagated Dependency: Cosmo Consult - COSMO Licensing - 1.1.0.0
2021-07-26T13:11:18.5619956Z *** Propagated Dependency: Cosmo Consult - COSMO Graphical Extension - 2.9.0.0
2021-07-26T13:11:18.5624765Z *** Download System-Symbols for [17.0.0.0]
2021-07-26T13:11:18.5630179Z *** Downloading NAV Symbols for [System v17.0.0.0]
2021-07-26T13:11:18.5635132Z *** Downloading NAV Symbols from [https://c5d69def3944:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=17.0.0.0&tenant=default]
2021-07-26T13:11:18.5640171Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2021-07-26T13:11:18.5647529Z ##[command]Invoke-RestMethod -Method Get -Uri https://c5d69def3944:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=17.0.0.0&tenant=default
2021-07-26T13:11:20.3093062Z *** Content-Disposition: attachment; filename=Microsoft_System_18.0.28183.0.app
2021-07-26T13:11:20.3098931Z *** Saving symbol file [Microsoft_System_18.0.28183.0.app] to [c:\Run\DevOps\PackageCache]
2021-07-26T13:11:20.3104399Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_System_18.0.28183.0.app].
2021-07-26T13:11:20.3109291Z ***
2021-07-26T13:11:20.3114383Z *** Download Application-Symbols for [17.2.0.0]
2021-07-26T13:11:20.3119807Z *** Downloading NAV Symbols for [Application v17.2.0.0]
2021-07-26T13:11:20.3124414Z *** Downloading NAV Symbols from [https://c5d69def3944:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=17.2.0.0&tenant=default]
2021-07-26T13:11:20.3128793Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2021-07-26T13:11:20.3133809Z ##[command]Invoke-RestMethod -Method Get -Uri https://c5d69def3944:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=17.2.0.0&tenant=default
2021-07-26T13:11:20.3138431Z *** Content-Disposition: attachment; filename=Microsoft_Application_19.0.28272.0.app
2021-07-26T13:11:20.3143392Z *** Saving symbol file [Microsoft_Application_19.0.28272.0.app] to [c:\Run\DevOps\PackageCache]
2021-07-26T13:11:20.3148609Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Application_19.0.28272.0.app].
2021-07-26T13:11:20.3153435Z *** Propagated Dependency: Microsoft - System Application - 19.0.0.0
2021-07-26T13:11:20.3157925Z *** Propagated Dependency: Microsoft - Base Application - 19.0.0.0
2021-07-26T13:11:20.3161912Z ***
2021-07-26T13:11:20.3166759Z *** Download Previous version for [COSMO Advanced Manufacturing Pack]
2021-07-26T13:11:20.3171128Z *** Downloading NAV Symbols for [COSMO Advanced Manufacturing Pack v2.8.51782.54697]
2021-07-26T13:11:20.3175895Z *** Downloading NAV Symbols from [https://c5d69def3944:7049/BC/dev/packages?publisher=Cosmo+Consult&appName=COSMO+Advanced+Manufacturing+Pack&versionText=2.8.51782.54697&tenant=default]
2021-07-26T13:11:20.3180744Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2021-07-26T13:11:20.3185776Z ##[command]Invoke-RestMethod -Method Get -Uri https://c5d69def3944:7049/BC/dev/packages?publisher=Cosmo+Consult&appName=COSMO+Advanced+Manufacturing+Pack&versionText=2.8.51782.54697&tenant=default
2021-07-26T13:11:20.7257417Z ##[error]Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
2021-07-26T13:11:20.7636798Z ##[section]Async Command Start: Add Build Tag
2021-07-26T13:11:20.7637310Z Build '58212' has following tags now: AL.Compiler.ALLanguage, BC.Platform.18.0.28183.0, BC.Version.19.0.28272.0, bcinsider/cosmo-bc-sandbox-19.0.28272.0-de-mt
2021-07-26T13:11:20.7637680Z ##[section]Async Command End: Add Build Tag
2021-07-26T13:11:20.7638334Z ##[section]Async Command Start: Update Build Number
2021-07-26T13:11:20.7638675Z Update build number to 2.9.0.58212 for build 58212
2021-07-26T13:11:20.7638909Z ##[section]Async Command End: Update Build Number
2021-07-26T13:11:20.7640746Z ##[section]Finishing: ALOps Compile App
Expected behavior
Not sure if there is another way that I am not aware of. But I would have expected the Compile step not to check the previous version if we do not pass the AppSourceCop into the al_analyzer parameter. Is there a switch for disabling the download?
Screenshots
If applicable, add screenshots to help explain your problem. You can easily paste them in here.
Additional context
Due to we also have a pipeline building against the current release and the nextMinor removing the version from the AppSourcCop.json isn't a either. We are using the SelfService Environment from Tobias.
Describe the bug We got a breaking change in the nextMajor from Microsoft that prevents the current released version from being installed. Therefore we disabled the AppSourceCop and don't install the version to the nextMajor container anymore in this pipeline. But, it seems that as long as we got a version in the AppSourceCop.json the compiler tries to download the previousRelease.
the used yaml please provide the yaml that you used. It helps you put the yaml like this:
the output Also the complete output is necessary for us to see what is going on. Also use backtics:
Expected behavior Not sure if there is another way that I am not aware of. But I would have expected the Compile step not to check the previous version if we do not pass the AppSourceCop into the al_analyzer parameter. Is there a switch for disabling the download?
Screenshots If applicable, add screenshots to help explain your problem. You can easily paste them in here.
Additional context Due to we also have a pipeline building against the current release and the nextMinor removing the version from the AppSourcCop.json isn't a either. We are using the SelfService Environment from Tobias.