HodorNV / ALOps

ALOps
58 stars 24 forks source link

ALOPS - Compile: File not Found error in app compile step as of v1.455.3607 #631

Closed PeterConijn closed 1 year ago

PeterConijn commented 1 year ago

Describe the bug As of the update this morning, all builds are failing on the compile step with a file not found on the compiled app file.

[error]Cannot find path 'c:\Run\DevOps\Dysel_DYSEL_22.0.202305.1595_APP.app' because it does not exist.

the used yaml please provide the yaml that you used. It helps you put the yaml like this:

name: $(Build.BuildId)
trigger:
  branches:
    include:
    - Dummy
variables:
- group: 'PipelineVariables'
resources:
  repositories:
  - repository: BuildTemplates
    name: ELC25/Templates
    type: Git
    ref: main
  pipelines:
  - pipeline: DyselSystem
    source: DYSEL-SYSTEM-ACC
stages:
- stage: __default
  jobs:
  - job: 'Build'
    pool:
      name: Dysel_Pool
    displayName: 'Create Build'
    timeoutInMinutes: 120
    steps:
    - task: PowerShell@2
      displayName: "Remove all .app files from $(Agent.BuildDirectory) and sub folders"
      inputs:
        targetType: 'inline'
        script: Get-ChildItem -Path "$(Agent.BuildDirectory)" -Filter "*.app" -Recurse | Remove-Item -Force:$true -Confirm:$false -ErrorAction SilentlyContinue
        errorActionPreference: 'continue'
    - task: ALOpsDockerCreate@1
      displayName: 'ALOPS - Create Docker Image'
      inputs:
        artifactversion: 21.5
        artifacttype: OnPrem
        artifactcountry: W1
    - task: ALOpsDockerStart@1
      displayName: 'ALOPS - Start Docker Container'
    - task: ALOpsDockerWait@1
      displayName: 'ALOPS - Wait for Docker Container to start'
      inputs:
        search_string: 'Ready for connections!'
    - task: ALOpsLicenseImport@1
      displayName: 'ALOPS - Dev License Import'
      inputs:
        usedocker: true
        license_path: $(BCDevLicense)
    - task: ALOpsAppPublish@1
      displayName: 'ALOPS - Install AL TestTool'
      condition: True
      inputs:
        usedocker: true
        installaltesttool: true
        skip_verification: true
        install_al_app_names: |-
          Tests-TestLibraries
          System Application Test
          System Application Test Library
          Any
          Library Assert
          Test Runner
          Permissions Mock
          Library Variable Storage
    - task: 30f35852-3f7e-4c0c-9a88-e127b4f97211@1
      displayName: 'Download Artefact: Dysel System App'
      inputs:
        alias: DyselSystem
    - task: CopyFiles@2
      displayName: 'Copy Artifact: Dysel System App'
      inputs:
        sourceFolder: '$(Agent.BuildDirectory)/DyselSystem/ELC25'
        contents: '*_APP.app'
        targetFolder: '$(Build.ArtifactStagingDirectory)/Technical/.alpackages'
    - task: ALOpsAppPublish@1
      displayName: 'Publish: Dysel System App'
      inputs:
        usedocker: true
        nav_artifact_app_filter: '*.app'
        skip_verification: true
    **- task: ALOpsAppCompiler@1
      displayName: 'ALOPS - Compile: Dysel W1 App'
      inputs:
        usedocker: true
        nav_app_version: 22.0.[yyyy]05.*
        targetproject: App/app.json
        ruleset: '.codeAnalysis/hidden-ruleset.json'
        internalsvisibleto: Keep
        failed_on_warnings: false
        app_file_suffix: '_APP'**
    - task: ALOpsAppPublish@1
      displayName: 'ALOPS - Publish: Dysel W1 App'
      inputs:
        usedocker: true
        nav_artifact_app_filter: '*_APP.app'
        skip_verification: true
    - task: ALOpsAppCompiler@1
      displayName: 'ALOPS - Compile: Dysel W1 Test-App'
      condition: True
      inputs:
        usedocker: true
        targetproject: test/app.json
        nav_app_version: 22.0.[yyyy]05.*
        ruleset: '.codeAnalysis/hidden-ruleset.json'
        failed_on_warnings: false
        app_file_suffix: '_TEST'
    - task: ALOpsAppPublish@1
      displayName: 'ALOPS - Publish: Dysel W1 Test App'
      condition: True
      inputs:
        usedocker: true
        nav_artifact_app_filter: '*_TEST.app'
        skip_verification: true
    - task: ALOpsAppTest@1
      displayName: 'ALOPS - Run TestSuite'
      condition: True
      inputs:
        usedocker: true
        import_action: "Skip"
        import_testtoolkit: false
        testpage: '130455'
        testsuite: 'DEFAULT'
        failed_test_action: 'Error'
        show_available_tests: false
        disabledtests: Test/DisabledTests.json
      continueOnError: false
    - task: PublishTestResults@2
      displayName: 'Publish Test Results **/TestResults.xml'
      condition: True
      inputs:
        testResultsFormat: XUnit
        testResultsFiles: '**/TestResults.xml'
        testRunTitle: 'BC Test Results: $(Build.BuildId)'
    - task: CopyFiles@2
      displayName: 'Copy Test Artifacts to $(Agent.BuildDirectory)/TestResults'
      condition: True
      inputs:
        SourceFolder: '$(Build.Sourcesdirectory)'
        Contents: ?(TestResults.xml|)
        TargetFolder: '$(Agent.BuildDirectory)/TestResults'
    - task: PublishPipelineArtifact@1
      displayName: 'Publish Test Artifacts: TestResults.xml'
      condition: True
      inputs:
        targetPath: '$(Agent.BuildDirectory)/TestResults'
        artifact: 'TestResults'
        publishLocation: 'pipeline'
    - task: PowerShell@2
      displayName: "Create Output Folder"
      inputs:
        targetType: 'inline'
        script: New-Item -ItemType Directory -Force -Path "$(System.ArtifactsDirectory)\Technical" -ErrorAction SilentlyContinue
        errorActionPreference: 'continue'
    - task: PublishPipelineArtifact@1
      displayName: 'Publish Artifact: Additionals'
      condition: True
      inputs:
        targetPath: '$(Build.ArtifactStagingDirectory)/Technical'
        artifact: 'Technical'
        publishLocation: 'pipeline'
      continueOnError: true
    - task: ALOpsDockerRemove@1
      displayName: 'ALOPS - Remove Docker Container'
      enabled: true
      condition: always()
      inputs:
        createsqlbackup: disabled
  - job: 'Email_Results'
    pool:
      name: Dysel_Pool
    dependsOn:
    - 'Build'
    condition: always()
    steps:
    - task: EmailReport@1
      inputs:
        sendMailConditionConfig: 'Always'
        subject: '[{environmentStatus}] {passPercentage} tests passed in $(Build.DefinitionName) stage for $(Build.BuildNumber)'
        toAddress: '[***redacted***]'
        ccAddress: '[***redacted***]'
        defaultDomain: 'microsoft.com'
        groupTestResultsBy: 'run'
        includeCommits: true
        maxTestFailuresToShow: '15'
        includeOthersInTotal: false
        usePreviousEnvironment: false
        smtpConnectionEndpoint: 'Test Result Email Service'
      continueOnError: true
  - job: 'Merge'
    pool:
      name: Dysel_Pool
    dependsOn:
    - 'Build'
    displayName: 'Merge to Accept'
    condition: succeeded()
    steps:
    - task: CreatePullRequest@1
      continueOnError: true
      inputs:
        repoType: 'Azure DevOps'
        repositorySelector: 'currentBuild'
        sourceBranch: '$(Build.SourceBranch)'
        targetBranch: 'Accept'
        title: 'Merge Development into [BRANCH_NAME]'
        description: 'Merge development changes into Accept branch'
        linkWorkItems: false
        autoComplete: true
        commitMessage: 'Automatic merge DEV -> ACC'

the output Also the complete output is necessary for us to see what is going on. Also use backtics:

2023-04-12T13:25:24.7495456Z ##[section]Starting: ALOPS - Compile: Dysel W1 App
2023-04-12T13:25:24.7590821Z ==============================================================================
2023-04-12T13:25:24.7591084Z Task         : ALOps App Compiler
2023-04-12T13:25:24.7591248Z Description  : Compile AL Extensions for Business Central
2023-04-12T13:25:24.7591438Z Version      : 1.455.3607
2023-04-12T13:25:24.7591573Z Author       : Hodor
2023-04-12T13:25:24.7591724Z Help         : Compile a Business Central extension from AL code.
2023-04-12T13:25:24.7591914Z ==============================================================================
2023-04-12T13:25:25.6873110Z *** Validate configuration
2023-04-12T13:25:25.7609426Z *** Task Inputs:
2023-04-12T13:25:25.7670356Z 
2023-04-12T13:25:25.7798628Z name                                                                                   value
2023-04-12T13:25:25.7800422Z ----                                                                                   -----
2023-04-12T13:25:25.7801410Z usedocker                                                                               True
2023-04-12T13:25:25.7803108Z fixed_tag                                                                                   
2023-04-12T13:25:25.7804366Z targetproject                                    C:\ADO_agents\agent1\_work\1\s\App\app.json
2023-04-12T13:25:25.7805811Z nav_computername                                                                            
2023-04-12T13:25:25.7807230Z nav_serverinstance                                                                     BC140
2023-04-12T13:25:25.7808375Z nav_tenant                                                                           default
2023-04-12T13:25:25.7809529Z nav_ports_dev                                                                           7049
2023-04-12T13:25:25.7810912Z bc_username                                                                                 
2023-04-12T13:25:25.7812029Z bc_password                                                                                 
2023-04-12T13:25:25.7813237Z al_compiler_version                                                               0.12.15355
2023-04-12T13:25:25.7814424Z ruleset                                                    .codeAnalysis/hidden-ruleset.json
2023-04-12T13:25:25.7816124Z suppresswarnings                                                                        KEEP
2023-04-12T13:25:25.7817477Z al_analyzer                                                                                 
2023-04-12T13:25:25.7818363Z ignorepragmas                                                                               
2023-04-12T13:25:25.7819510Z nav_app_version                                                              22.0.[yyyy]05.*
2023-04-12T13:25:25.7820554Z vsix_download_path                                                                          
2023-04-12T13:25:25.7821752Z use_ssl                                                                                False
2023-04-12T13:25:25.7823018Z download_test_symbols                                                                  False
2023-04-12T13:25:25.7824240Z usecompression                                                                          True
2023-04-12T13:25:25.7825459Z publish_artifact                                                                        True
2023-04-12T13:25:25.7826970Z publishxlif                                                                            False
2023-04-12T13:25:25.7828197Z failed_on_warnings                                                                     False
2023-04-12T13:25:25.7830223Z app_file_suffix                                                                         _APP
2023-04-12T13:25:25.7831528Z updatebuildnumber                                                                       True
2023-04-12T13:25:25.7832928Z setup_working_folder                                                                   False
2023-04-12T13:25:25.7835239Z showmycode                                                                              Keep
2023-04-12T13:25:25.7835626Z resourceexposurepolicy_allowdebugging                                                   Keep
2023-04-12T13:25:25.7836153Z resourceexposurepolicy_allowdownloadingsource                                           Keep
2023-04-12T13:25:25.7837041Z resourceexposurepolicy_includesourceinsymbolfile                                        Keep
2023-04-12T13:25:25.7838399Z internalsvisibleto                                                                      Keep
2023-04-12T13:25:25.7839561Z preprocessorsymbols                                                                         
2023-04-12T13:25:25.7840821Z applicationinsightskey                                                                      
2023-04-12T13:25:25.7842080Z printappmanifest                                                                        True
2023-04-12T13:25:25.7843549Z output_alc_logs                                                                         True
2023-04-12T13:25:25.7844081Z additionalprobingpaths                                                                      
2023-04-12T13:25:25.7845251Z enable_external_rulesets                                                               False
2023-04-12T13:25:25.7845456Z 
2023-04-12T13:25:25.7868649Z 
2023-04-12T13:25:25.7876670Z 
2023-04-12T13:25:25.8055706Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-04-12T13:25:25.8058904Z 
2023-04-12T13:25:26.0683927Z *** ALOps License:
2023-04-12T13:25:26.0702659Z   * Licensed To: [***redacted***]
2023-04-12T13:25:26.0705968Z 
2023-04-12T13:25:26.0824797Z *** Importing required PS-Functions
2023-04-12T13:25:26.2561673Z *** Initiate Docker Session
2023-04-12T13:25:26.5089171Z *** Set Docker Container ErrorActionPreference = Stop
2023-04-12T13:25:26.9686423Z *** Import NAV/BC Management DLL's [False]
2023-04-12T13:25:26.9744633Z *** Loading assemblies for ServiceTier [BC].
2023-04-12T13:25:27.1926975Z *** Loading assemblies from: [C:\program files\microsoft dynamics nav\210\service]
2023-04-12T13:25:27.2508536Z *** Selected module: [C:\program files\microsoft dynamics nav\210\service\Microsoft.Dynamics.Nav.Management.dll]
2023-04-12T13:25:27.2517219Z *** Loading module: [C:\program files\microsoft dynamics nav\210\service\Microsoft.Dynamics.Nav.Management.dll]
2023-04-12T13:25:27.3804725Z *** Selected module: [C:\program files\microsoft dynamics nav\210\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2023-04-12T13:25:27.3811763Z *** Loading module: [C:\program files\microsoft dynamics nav\210\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2023-04-12T13:25:27.6816744Z *** Setting up AL Compiler [ALLanguage]
2023-04-12T13:25:27.8086153Z *** Downloading AL Compiler [ALLanguage]
2023-04-12T13:25:27.8195216Z *** Get Extension from Local-Disk...[C:\Run\ALLanguage.vsix]
2023-04-12T13:25:27.8202730Z *** Resolving Path [C:\Run\ALLanguage.vsix]
2023-04-12T13:25:28.0346927Z *** VSIX Path Resolved: [C:\Run\ALLanguage.vsix]
2023-04-12T13:25:28.0376219Z *** Unpacking Extension to folder...
2023-04-12T13:25:32.6499703Z *** Loading Json Object: [c:\Run\Microsoft.al\al-ALLanguage\extension\package.json]
2023-04-12T13:25:32.6787871Z *** Using AL Compiler [vALLanguage] located [C:\Run\Microsoft.al\al-ALLanguage\extension\bin\win32\alc.exe]
2023-04-12T13:25:32.6792662Z ***
2023-04-12T13:25:32.6801597Z *** Working folder: C:\ADO_agents\agent1\_work\1\s
2023-04-12T13:25:32.6808780Z ***
2023-04-12T13:25:32.6851833Z *** Copy Working folder to Docker Container: 3769b08e6d985589accacf27b18e6c577ae88f06f5cc95850eb6eac16a1e7ff4
2023-04-12T13:25:32.6852801Z *** Docker Working Folder: c:\Run\DevOps\
2023-04-12T13:25:32.6853331Z *** Copy from [C:\ADO_agents\agent1\_work\1\s] to [c:\Run\DevOps\]
2023-04-12T13:25:32.6868093Z *** Source File setup completed
2023-04-12T13:25:32.7919460Z *** Target Project: \App\app.json
2023-04-12T13:25:32.7928421Z *** Check for app.json files: c:\Run\DevOps\
2023-04-12T13:25:32.8143085Z *** Multiple projects found:
2023-04-12T13:25:32.8200916Z    - C:\Run\DevOps\App
2023-04-12T13:25:32.8209086Z    - C:\Run\DevOps\Test
2023-04-12T13:25:32.8241049Z *** Retrieving App-Info [\App\app.json]
2023-04-12T13:25:32.8281864Z *** Loading Json Object: [c:\Run\DevOps\App\app.json]
2023-04-12T13:25:32.8312799Z   * App.ID          = 781203f8-1ade-47fe-8d41-9c5319586d30
2023-04-12T13:25:32.8332512Z   * App.Name        = DYSEL
2023-04-12T13:25:32.8353057Z   * App.Publisher   = Dysel
2023-04-12T13:25:32.8373045Z   * App.Version     = 22.0.202305.0
2023-04-12T13:25:32.8395020Z   * App.Platform    = 21.0.0.0
2023-04-12T13:25:32.8415963Z   * App.Application = 21.5.0.0
2023-04-12T13:25:32.8478744Z *** Check Runtime: [11.0]
2023-04-12T13:25:32.8618900Z ***
2023-04-12T13:25:32.9152152Z *** Match: yyyy
2023-04-12T13:25:32.9293929Z *** Setting Managed App Version [c:\Run\DevOps\App\app.json] =>  22.0.202305.1595
2023-04-12T13:25:32.9754193Z *** Final app.json:
2023-04-12T13:25:32.9758243Z {
2023-04-12T13:25:32.9758999Z     "id":  "781203f8-1ade-47fe-8d41-9c5319586d30",
2023-04-12T13:25:32.9759554Z     "name":  "DYSEL",
2023-04-12T13:25:32.9759888Z     "publisher":  "Dysel",
2023-04-12T13:25:32.9760243Z     "version":  "22.0.202305.1595",
2023-04-12T13:25:32.9760686Z     "brief":  "The Dysel Base App for equipment life cycle management.",
2023-04-12T13:25:32.9761288Z     "description":  "This app is the base app for the equipment life cycle management system developed by Dysel Business Solutions",
2023-04-12T13:25:32.9761867Z     "privacyStatement":  "https://dysel.com/app-privacy-policy",
2023-04-12T13:25:32.9762331Z     "EULA":  "https://dysel.com/eula",
2023-04-12T13:25:32.9762713Z     "help":  "https://support.dysel.com",
2023-04-12T13:25:32.9763080Z     "url":  "https://www.dysel.com",
2023-04-12T13:25:32.9763450Z     "logo":  "Images/Dysel_Logo.png",
2023-04-12T13:25:32.9763796Z     "dependencies":  [
2023-04-12T13:25:32.9764117Z                          {
2023-04-12T13:25:32.9764493Z                              "id":  "c4838e55-cada-4d22-a128-c60103a4092a",
2023-04-12T13:25:32.9764902Z                              "publisher":  "Dysel",
2023-04-12T13:25:32.9765287Z                              "name":  "DYSEL System Application",
2023-04-12T13:25:32.9765674Z                              "version":  "21.5.202303.1290"
2023-04-12T13:25:32.9766012Z                          }
2023-04-12T13:25:32.9766293Z                      ],
2023-04-12T13:25:32.9766608Z     "propagateDependencies":  true,
2023-04-12T13:25:32.9766953Z     "screenshots":  [
2023-04-12T13:25:32.9767126Z 
2023-04-12T13:25:32.9767381Z                     ],
2023-04-12T13:25:32.9767645Z     "application":  "21.5.0.0",
2023-04-12T13:25:32.9767921Z     "platform":  "21.0.0.0",
2023-04-12T13:25:32.9768182Z     "features":  [
2023-04-12T13:25:32.9768436Z                      "TranslationFile",
2023-04-12T13:25:32.9768931Z                      "NoImplicitWith"
2023-04-12T13:25:32.9769184Z                  ],
2023-04-12T13:25:32.9769403Z     "idRanges":  [
2023-04-12T13:25:32.9769634Z                      {
2023-04-12T13:25:32.9769875Z                          "from":  11021500,
2023-04-12T13:25:32.9770161Z                          "to":  11134251
2023-04-12T13:25:32.9770407Z                      }
2023-04-12T13:25:32.9770615Z                  ],
2023-04-12T13:25:32.9770961Z     "internalsVisibleTo":  [
2023-04-12T13:25:32.9771288Z                                {
2023-04-12T13:25:32.9771939Z                                    "id":  [***redacted***],
2023-04-12T13:25:32.9772425Z                                    "name":  [***redacted***],
2023-04-12T13:25:32.9772818Z                                    "publisher":  [***redacted***]
2023-04-12T13:25:32.9773135Z                                }
2023-04-12T13:25:32.9773425Z                            ],
2023-04-12T13:25:32.9773751Z     "resourceExposurePolicy":  {
2023-04-12T13:25:32.9775282Z                                    "allowDebugging":  true,
2023-04-12T13:25:32.9775683Z                                    "allowDownloadingSource":  false,
2023-04-12T13:25:32.9776045Z                                    "includeSourceInSymbolFile":  false
2023-04-12T13:25:32.9776330Z                                },
2023-04-12T13:25:32.9776740Z     "contextSensitiveHelpUrl":  "https://learn.microsoft.com/en-us/training/dynamics365/business-central",
2023-04-12T13:25:32.9777586Z     "applicationInsightsConnectionString":  [***redacted***],
2023-04-12T13:25:32.9778279Z     "runtime":  "11.0",
2023-04-12T13:25:32.9778563Z     "preprocessorSymbols":  [
2023-04-12T13:25:32.9778841Z                                 "DW121"
2023-04-12T13:25:32.9779071Z                             ]
2023-04-12T13:25:32.9779313Z }
2023-04-12T13:25:32.9779401Z 
2023-04-12T13:25:32.9779608Z ***
2023-04-12T13:25:32.9878081Z *** Working Direcotry: [c:\Run\DevOps\]
2023-04-12T13:25:32.9888555Z *** Target Project: [\App\app.json]
2023-04-12T13:25:33.0020224Z *** Project Directory: [c:\Run\DevOps\App]
2023-04-12T13:25:33.0065368Z *** Overrule VSCode settings RuleSetPath: .codeAnalysis/hidden-ruleset.json
2023-04-12T13:25:33.0106610Z *** Using Ruleset: [c:\Run\DevOps\App\.codeAnalysis\hidden-ruleset.json]
2023-04-12T13:25:33.0119945Z ***
2023-04-12T13:25:33.1056003Z *** Resolve Docker Credentials
2023-04-12T13:25:33.1115785Z *** Setup BC Username/Password from Container info
2023-04-12T13:25:33.1506859Z *** Download Symbols
2023-04-12T13:25:33.3214492Z *** Working Dir: c:\Run\DevOps\
2023-04-12T13:25:33.3223461Z *** Load Code-Analysis from VSIX Folder
2023-04-12T13:25:33.3342115Z *** Loading assemblies from: [C:\Run\Microsoft.al\al-ALLanguage\extension\bin]
2023-04-12T13:25:33.3680207Z *** Loading: [C:\Run\Microsoft.al\al-ALLanguage\extension\bin\Microsoft.Dynamics.Nav.CodeAnalysis.dll]
2023-04-12T13:25:34.0388779Z *** PackageCache path created [c:\Run\DevOps\PackageCache]
2023-04-12T13:25:34.0396392Z ***
2023-04-12T13:25:34.0502721Z *** Propagated Dependency: Dysel - DYSEL System Application - 21.5.202303.1290
2023-04-12T13:25:34.0572740Z *** Download System-Symbols for [21.0.0.0]
2023-04-12T13:25:34.0987268Z *** Downloading NAV Symbols for [System v21.0.0.0]
2023-04-12T13:25:34.0997718Z *** Downloading NAV Symbols from [https://3769b08e6d98:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=21.0.0.0&tenant=default]
2023-04-12T13:25:34.1487287Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2023-04-12T13:25:34.1512766Z ##[command]Invoke-RestMethod -Method Get -Uri https://3769b08e6d98:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=21.0.0.0&tenant=default
2023-04-12T13:25:35.1538657Z *** Content-Disposition: attachment; filename=Microsoft_System_21.0.53597.53794.app; filename*=UTF-8''Microsoft_System_21.0.53597.53794.app
2023-04-12T13:25:35.1725208Z *** Saving symbol file [Microsoft_System_21.0.53597.53794.app] to [c:\Run\DevOps\PackageCache]
2023-04-12T13:25:35.1939343Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_System_21.0.53597.53794.app].
2023-04-12T13:25:35.2921355Z ***
2023-04-12T13:25:35.2930702Z *** Download Application-Symbols for [21.5.0.0]
2023-04-12T13:25:35.2944186Z *** Downloading NAV Symbols for [Application v21.5.0.0]
2023-04-12T13:25:35.2953387Z *** Downloading NAV Symbols from [https://3769b08e6d98:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=21.5.0.0&tenant=default]
2023-04-12T13:25:35.2963838Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2023-04-12T13:25:35.2972447Z ##[command]Invoke-RestMethod -Method Get -Uri https://3769b08e6d98:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=21.5.0.0&tenant=default
2023-04-12T13:25:35.7666190Z *** Content-Disposition: attachment; filename=Microsoft_Application_21.5.53619.53819.app; filename*=UTF-8''Microsoft_Application_21.5.53619.53819.app
2023-04-12T13:25:35.7692473Z *** Saving symbol file [Microsoft_Application_21.5.53619.53819.app] to [c:\Run\DevOps\PackageCache]
2023-04-12T13:25:35.7757651Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Application_21.5.53619.53819.app].
2023-04-12T13:25:35.8000768Z *** Propagated Dependency: Microsoft - System Application - 21.5.0.0
2023-04-12T13:25:35.8053977Z *** Propagated Dependency: Microsoft - Base Application - 21.5.0.0
2023-04-12T13:25:35.8063502Z ***
2023-04-12T13:25:35.8111523Z *** Check for Depency Apps 3
2023-04-12T13:25:35.8137729Z *** Download Application-Symbols for [DYSEL System Application v21.5.202303.1290]
2023-04-12T13:25:35.8151718Z *** Downloading NAV Symbols for [DYSEL System Application v21.5.202303.1290]
2023-04-12T13:25:35.8160824Z *** Downloading NAV Symbols from [https://3769b08e6d98:7049/BC/dev/packages?publisher=Dysel&appName=DYSEL+System+Application&versionText=21.5.202303.1290&tenant=default&appid=c4838e55-cada-4d22-a128-c60103a4092a]
2023-04-12T13:25:35.8172560Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2023-04-12T13:25:35.8182593Z ##[command]Invoke-RestMethod -Method Get -Uri https://3769b08e6d98:7049/BC/dev/packages?publisher=Dysel&appName=DYSEL+System+Application&versionText=21.5.202303.1290&tenant=default&appid=c4838e55-cada-4d22-a128-c60103a4092a
2023-04-12T13:25:36.3727684Z *** Content-Disposition: attachment; filename="Dysel_DYSEL System Application_22.0.202305.1554.app"; filename*=UTF-8''Dysel_DYSEL%20System%20Application_22.0.202305.1554.app
2023-04-12T13:25:36.3756748Z *** Saving symbol file [Dysel_DYSEL System Application_22.0.202305.1554.app] to [c:\Run\DevOps\PackageCache]
2023-04-12T13:25:36.3784179Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Dysel_DYSEL System Application_22.0.202305.1554.app].
2023-04-12T13:25:36.3812447Z ***
2023-04-12T13:25:36.3863215Z *** Download Application-Symbols for [System Application v21.5.0.0]
2023-04-12T13:25:36.3922446Z *** Downloading NAV Symbols for [System Application v21.5.0.0]
2023-04-12T13:25:36.3949481Z *** Downloading NAV Symbols from [https://3769b08e6d98:7049/BC/dev/packages?publisher=Microsoft&appName=System+Application&versionText=21.5.0.0&tenant=default&appid=63ca2fa4-4f03-4f2b-a480-172fef340d3f]
2023-04-12T13:25:36.3953635Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2023-04-12T13:25:36.3956277Z ##[command]Invoke-RestMethod -Method Get -Uri https://3769b08e6d98:7049/BC/dev/packages?publisher=Microsoft&appName=System+Application&versionText=21.5.0.0&tenant=default&appid=63ca2fa4-4f03-4f2b-a480-172fef340d3f
2023-04-12T13:25:36.8991824Z *** Content-Disposition: attachment; filename="Microsoft_System Application_21.5.53619.53819.app"; filename*=UTF-8''Microsoft_System%20Application_21.5.53619.53819.app
2023-04-12T13:25:36.9022622Z *** Saving symbol file [Microsoft_System Application_21.5.53619.53819.app] to [c:\Run\DevOps\PackageCache]
2023-04-12T13:25:36.9209253Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_System Application_21.5.53619.53819.app].
2023-04-12T13:25:36.9397220Z ***
2023-04-12T13:25:36.9411623Z *** Download Application-Symbols for [Base Application v21.5.0.0]
2023-04-12T13:25:36.9428905Z *** Downloading NAV Symbols for [Base Application v21.5.0.0]
2023-04-12T13:25:36.9435534Z *** Downloading NAV Symbols from [https://3769b08e6d98:7049/BC/dev/packages?publisher=Microsoft&appName=Base+Application&versionText=21.5.0.0&tenant=default&appid=437dbf0e-84ff-417a-965d-ed2bb9650972]
2023-04-12T13:25:36.9447222Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2023-04-12T13:25:36.9455805Z ##[command]Invoke-RestMethod -Method Get -Uri https://3769b08e6d98:7049/BC/dev/packages?publisher=Microsoft&appName=Base+Application&versionText=21.5.0.0&tenant=default&appid=437dbf0e-84ff-417a-965d-ed2bb9650972
2023-04-12T13:25:37.5342535Z *** Content-Disposition: attachment; filename="Microsoft_Base Application_21.5.53619.53819.app"; filename*=UTF-8''Microsoft_Base%20Application_21.5.53619.53819.app
2023-04-12T13:25:37.5371257Z *** Saving symbol file [Microsoft_Base Application_21.5.53619.53819.app] to [c:\Run\DevOps\PackageCache]
2023-04-12T13:25:37.6352150Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Base Application_21.5.53619.53819.app].
2023-04-12T13:25:37.7576302Z ***
2023-04-12T13:25:37.8497543Z *** Starting AL Compiler...
2023-04-12T13:25:37.8505170Z *** App.Name         = DYSEL
2023-04-12T13:25:37.8513091Z *** App.Publisher    = Dysel
2023-04-12T13:25:37.8520809Z *** App.Compiler Path= C:\Run\Microsoft.al\al-ALLanguage\extension\bin\win32\alc.exe
2023-04-12T13:25:37.8604689Z *** Checking for Assemblies in App
2023-04-12T13:25:37.8872972Z *** Assemblies in App found. Adding Probing Paths (9).
2023-04-12T13:25:37.8882819Z   * C:\Run\DevOps\App\.netPackages\assembly\NativeImages_v4.0.30319_32\mscorlib\48544608ee1424c9c713d99c7a353349
2023-04-12T13:25:37.8891312Z   * C:\Run\DevOps\App\.netPackages\assembly\NativeImages_v4.0.30319_32\System\124abd65c903cefd0291acdc23aee0e8
2023-04-12T13:25:37.8899363Z   * C:\Run\DevOps\App\.netPackages\assembly\NativeImages_v4.0.30319_32\System.Drawing\336df51dfd2206ad2d4fc8fcd8b85873
2023-04-12T13:25:37.8907522Z   * C:\Run\DevOps\App\.netPackages\assembly\NativeImages_v4.0.30319_32\System.Web\e4ce273ad764320bbb33df72810a760f
2023-04-12T13:25:37.8920155Z   * C:\Run\DevOps\App\.netPackages\assembly\NativeImages_v4.0.30319_32\System.Xml\e997532c243e67f01320779f6c3090e5
2023-04-12T13:25:37.8924004Z   * C:\Run\DevOps\App\.netPackages\assembly\NativeImages_v4.0.30319_32\System.Xml.Linq\72d2038312dbcec51e016b5c0e10b4e5
2023-04-12T13:25:37.8933287Z   * C:\Run\DevOps\App\.netPackages\Dysel Add-ins\Dysel
2023-04-12T13:25:37.8942153Z   * C:\Run\DevOps\App\.netPackages\RoleTailored Client
2023-04-12T13:25:37.8950556Z   * C:\Run\DevOps\App\.netPackages\Service
2023-04-12T13:25:37.8958983Z *** Add Windows Assembly Path [C:\Windows\assembly]
2023-04-12T13:25:37.9053230Z *** Detect ALC.EXE Features.
2023-04-12T13:25:37.9061640Z ##[command]& C:\Run\Microsoft.al\al-ALLanguage\extension\bin\win32\alc.exe /?
2023-04-12T13:25:38.1549753Z   * PARALLEL+
2023-04-12T13:25:38.1556369Z   * MAXDEGREEOFPARALLELISM
2023-04-12T13:25:38.1565885Z   * ASSEMBLYPROBINGPATHS
2023-04-12T13:25:38.1602249Z ##[command]& C:\Run\Microsoft.al\al-ALLanguage\extension\bin\win32\alc.exe /packagecachepath:"c:\Run\DevOps\PackageCache" /project:"c:\Run\DevOps\App" /out:"c:\Run\DevOps\Dysel_DYSEL_22.0.202305.1595_APP.app" /fullpaths /parallel+ /maxDegreeOfParallelism:2 /assemblyprobingpaths:"C:\Run\DevOps\App\.netPackages\assembly\NativeImages_v4.0.30319_32\mscorlib\48544608ee1424c9c713d99c7a353349","C:\Run\DevOps\App\.netPackages\assembly\NativeImages_v4.0.30319_32\System\124abd65c903cefd0291acdc23aee0e8","C:\Run\DevOps\App\.netPackages\assembly\NativeImages_v4.0.30319_32\System.Drawing\336df51dfd2206ad2d4fc8fcd8b85873","C:\Run\DevOps\App\.netPackages\assembly\NativeImages_v4.0.30319_32\System.Web\e4ce273ad764320bbb33df72810a760f","C:\Run\DevOps\App\.netPackages\assembly\NativeImages_v4.0.30319_32\System.Xml\e997532c243e67f01320779f6c3090e5","C:\Run\DevOps\App\.netPackages\assembly\NativeImages_v4.0.30319_32\System.Xml.Linq\72d2038312dbcec51e016b5c0e10b4e5","C:\Run\DevOps\App\.netPackages\Dysel Add-ins\Dysel","C:\Run\DevOps\App\.netPackages\RoleTailored Client","C:\Run\DevOps\App\.netPackages\Service","C:\Windows\assembly","C:\Windows\Microsoft.NET\assembly","C:\program files\microsoft dynamics nav\210\service" /ruleset:"c:\Run\DevOps\App\.codeAnalysis\hidden-ruleset.json"
2023-04-12T13:25:38.6725768Z *** AL Compiler Exit Code: 1
2023-04-12T13:25:38.6744637Z *** Full Compile Log:
2023-04-12T13:25:38.6774348Z Microsoft (R) AL Compiler version 10.5.11.33831 Copyright (C) Microsoft Corporation. All rights reserved  c:\Run\DevOps\App\app.json(51,5): error AL1043: The runtime version '11.0' is not supported by the AL compiler.
2023-04-12T13:25:38.6779911Z 
2023-04-12T13:25:38.6988440Z *** AL Compiler raw logs: Start
2023-04-12T13:25:38.7004380Z Microsoft (R) AL Compiler version 10.5.11.33831
2023-04-12T13:25:38.7008058Z Copyright (C) Microsoft Corporation. All rights reserved
2023-04-12T13:25:38.7011497Z c:\Run\DevOps\App\app.json(51,5): error AL1043: The runtime version '11.0' is not supported by the AL compiler.
2023-04-12T13:25:38.7020790Z *** AL Compiler raw logs: End
2023-04-12T13:25:38.7028838Z *** Start processing compile results.
2023-04-12T13:25:38.7055338Z *** Compile OK.
2023-04-12T13:25:38.7071974Z *** Start processing compile results done.
2023-04-12T13:25:38.7080272Z *** Transfer App Artifact from Docker container.
**2023-04-12T13:25:38.8398430Z ##[error]Cannot find path 'c:\Run\DevOps\Dysel_DYSEL_22.0.202305.1595_APP.app' because it does not exist.**
2023-04-12T13:25:38.8708546Z ##[section]Async Command Start: Add Build Tag
2023-04-12T13:25:38.8709476Z Build '1595' has following tags now: AL.Compiler.ALLanguage, BC.Version.21.5.53619.53819, BC.Platform.21.0.53597.53794, myimage-onprem-21.5.53619.53819-w1-10.0.17763.4131-ltsc2019, App.DYSEL System Application.22.0.202305.1554
2023-04-12T13:25:38.8710234Z ##[section]Async Command End: Add Build Tag
2023-04-12T13:25:38.8711219Z ##[section]Async Command Start: Update Build Number
2023-04-12T13:25:38.8711749Z Update build number to 22.0.202305.1595 for build 1595
2023-04-12T13:25:38.8712079Z ##[section]Async Command End: Update Build Number
2023-04-12T13:25:38.8713130Z ##[section]Finishing: ALOPS - Compile: Dysel W1 App

Expected behavior I would expect the file as indicated on timestamp 2023-04-12T13:25:38.8398430Z in the log to be created and located, after which said file should be published in the next step of the script.

Screenshots image

Additional context This is happening to all our pipelines. Before this morning, they were all running fine. No changes have been made across all these pipelines that could lead to this effect.

PeterConijn commented 1 year ago

@waldo1001 Since our entire build process is now down, this is kind of an issue. Can someone please have a gander at it so we can get moving again?

waldo1001 commented 1 year ago

Peter,

Your app doesn't compile: 2023-04-12T13:25:38.7011497Z c:\Run\DevOps\App\app.json(51,5): error AL1043: The runtime version '11.0' is not supported by the AL compiler.

And that's why it doesn't find the file.

Since you're using a v21 docker, that runtime is not going to work: image

PeterConijn commented 1 year ago

image