Closed ferry-boussen closed 2 years ago
Compile based on IDs seems to work
In the yaml, I don't see where you are publishing the app to the docker container? You'll need to do that, because the compile will download the dependencies from that instance.. .
Sorry wrong yml, in the log you can see that the logs before the compile the symbols are downloaded.
name: $(Build.BuildId)
trigger:
branches:
include:
- master
- stable
variables:
- group: 'CoNet Extension - ALOPS' # link to a variable group that has secret variables, like URL to license file, or sasToken for insider builds
pool: BC Agents
steps:
- checkout: self
clean: true
- task: ALOpsDockerCreate@1
displayName: 'ALOPS - Create Docker Image' # It will reuse the image if already exists, or build one if it doesn't.
inputs:
artifacttype: Sandbox
artifactversion: 18.5
artifactcountry: NL
- task: ALOpsDockerStart@1
displayName: 'ALOPS - Start Docker Container' # No need to provide any details - it will get the details from previous step
inputs:
enable_symbol_loading: true
- task: ALOpsDockerWait@1
displayName: 'ALOPS - Wait for Docker Container to start'
inputs:
search_string: 'Ready for connections!'
- task: ALOpsLicenseImport@1
displayName: 'ALOPS - License Import'
inputs:
usedocker: true
license_path: '$(bc.license)' # more info: https://www.youtube.com/watch?v=iVLOerdCuwA&t=3078s
- task: ALOpsAppPublish@1
displayName: 'ALOps - Dependant extensions'
inputs:
usedocker: true
skip_verification: true
forcesync: true
installpublishedapps: true
batch_publish_folder: '$(Build.SourcesDirectory)/External-apps'
nav_artifact_app_filter: '*.app'
- task: ALOpsAppCompiler@1
displayName: 'ALOPS - Compile Extension'
inputs:
usedocker: true
nav_app_version: '2.0.1805.*'
failed_on_warnings: false
targetproject: './app.json' # point to the folder in your repo that you want to compile in this step
publish_artifact: true
- task: ALOpsDockerRemove@1
displayName: 'ALOPS - Remove Docker Container'
enabled: true
condition: always()
# https://github.com/HodorNV/ALOps/issues/211
- task: ALOpsAgentMaintenance@1
displayName: 'ALOps Agent Maintenance'
inputs:
removeoldtasks: true
removeunusedcontainers: true
removebcartifacts: true
daysunused: 7
Hi,
I can see you're using the filter together with the batch-setting. This doesn't work. If you 're batch-publishing, it should take all apps in the batch.
So - could you please send me the output of the publish step, so I can verify if the app is actually published?
Is this still a problem? If so, please provide full log and yml again, because i'm pretty much confused ;-)
@ferry-boussen ?
I will close this issue - if this is still a problem and you have more feedback with a full log and yml, you can open it again!
Describe the bug We have a extension that has a dependency on another app. During the build we publish the apps to the docker and then run the build.
the used yaml please provide the yaml that you used. It helps you put the yaml like this:
the output
Expected behavior The extension should build. The symbols are downloaded from Downloading NAV Symbols for [Project Management - Sell-to Customer v18.1.0.0]. Thats were the 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL' comes from