<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Caching dev version automation in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1597895#M18050</link>
    <description>&lt;P&gt;Do you use this script&amp;nbsp;&lt;A href="https://developers.arcgis.com/experience-builder/guide/deployment-topics/#automated-deployments?" target="_blank"&gt;https://developers.arcgis.com/experience-builder/guide/deployment-topics/#automated-deployments?&lt;/A&gt;&amp;nbsp;I think the script will increase the number automatically.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Mar 2025 06:06:24 GMT</pubDate>
    <dc:creator>JunshanLiu</dc:creator>
    <dc:date>2025-03-21T06:06:24Z</dc:date>
    <item>
      <title>Caching dev version automation</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1597220#M18011</link>
      <description>&lt;P&gt;I use automated deployments for my experiences and am trying to work on the service cache. I would rather not increment my release numbers manually and am hoping to do this in my pipeline. Has anyone automated this and be willing to share what they did?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 18:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1597220#M18011</guid>
      <dc:creator>LondonWalker</dc:creator>
      <dc:date>2025-03-19T18:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Caching dev version automation</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1597895#M18050</link>
      <description>&lt;P&gt;Do you use this script&amp;nbsp;&lt;A href="https://developers.arcgis.com/experience-builder/guide/deployment-topics/#automated-deployments?" target="_blank"&gt;https://developers.arcgis.com/experience-builder/guide/deployment-topics/#automated-deployments?&lt;/A&gt;&amp;nbsp;I think the script will increase the number automatically.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 06:06:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1597895#M18050</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2025-03-21T06:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Caching dev version automation</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1599229#M18106</link>
      <description>&lt;P&gt;I do, it does not&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 22:23:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1599229#M18106</guid>
      <dc:creator>LondonWalker</dc:creator>
      <dc:date>2025-03-25T22:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Caching dev version automation</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1599268#M18109</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/615900"&gt;@LondonWalker&lt;/a&gt;&amp;nbsp;I reverified, the build number will increase when you run the script. Could you double-check?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 02:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1599268#M18109</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2025-03-26T02:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Caching dev version automation</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1600074#M18166</link>
      <description>&lt;P&gt;I am currently on number 23. I ran the script and checked again and it is still 23. Here is my yaml&lt;/P&gt;&lt;LI-CODE lang="c"&gt;trigger:
- main
jobs:
- job: Build
  pool: 
    vmImage: ubuntu-latest
  steps:
  - script: curl -o exb.zip "$(curl -s 'https://downloads.arcgis.com/dms/rest/download/secured/arcgis-experience-builder-1.16.zip?f=json&amp;amp;folder=software%2FExperienceBuilder%2F1.16' | python3 -c "import sys, json; print(json.load(sys.stdin)['url'])")"
    displayName: Download Experience Builder
    env:
      ARCGIS_LIB_DOWNLOADER_USERNAME: $(username)
      ARCGIS_LIB_DOWNLOADER_PASSWORD: $(password)
  - script: unzip -q exb.zip -d arcgis-experience-builder-1.16
    displayName: Unzip Experience Builder
  - script: cp -r widgets/* arcgis-experience-builder-1.16/ArcGISExperienceBuilder/client/your-extensions/widgets
    displayName: Copy Custom Widgets
  - script: mkdir public &amp;amp;&amp;amp; cd public &amp;amp;&amp;amp; mkdir apps &amp;amp;&amp;amp; cd apps
    workingDirectory: arcgis-experience-builder-1.16/ArcGISExperienceBuilder/server
    displayName: Create App directory
  - script: cp -r apps/* arcgis-experience-builder-1.16/ArcGISExperienceBuilder/server/public/apps
    displayName: Copy apps
  - script: npm ci
    workingDirectory: arcgis-experience-builder-1.16/ArcGISExperienceBuilder/client
    displayName: NPM install client folder
  - script: npm ci
    displayName: NPM install in server folder
    workingDirectory: arcgis-experience-builder-1.16/ArcGISExperienceBuilder/server
  - script: npm run build:prod
    displayName: Build widgets
    workingDirectory: arcgis-experience-builder-1.16/ArcGISExperienceBuilder/client
  - script: node -e "require('./server/src/middlewares/dev/apps/app-download.js').zipApp('6', 'stateviewer.zip')"
    workingDirectory: arcgis-experience-builder-1.16/ArcGISExperienceBuilder
    displayName: Run download script
    env:
      NODE_ENV: production
  - script: unzip -q stateviewer.zip -d stateviewer
    workingDirectory: arcgis-experience-builder-1.16/ArcGISExperienceBuilder
    displayName: Unzip stateviewer zip
  - task: ArchiveFiles@2
    inputs:
      rootFolderOrFile: 'arcgis-experience-builder-1.16/ArcGISExperienceBuilder/stateviewer'
      includeRootFolder: false
      archiveType: 'zip'
      archiveFile: '$(Build.ArtifactStagingDirectory)/stateviewer.zip'
      replaceExistingArchive: true
  - task: PublishBuildArtifacts@1
    displayName: 'Push both compiled code (in build) and Nuget Package (in artifact) to BuildArtifact Container.'
    inputs:
      PathtoPublish: '$(Build.ArtifactStagingDirectory)/stateviewer.zip' #'$(Build.ArtifactStagingDirectory)'
      ArtifactName: 'drop'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 19:15:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1600074#M18166</guid>
      <dc:creator>LondonWalker</dc:creator>
      <dc:date>2025-03-27T19:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Caching dev version automation</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1600271#M18206</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/615900"&gt;@LondonWalker&lt;/a&gt;&amp;nbsp;I think I got why the build number in your app is not increased. The build number is saved in a file, which name is download-times.json, in the app folder. In your script, you copy the apps to the "server/apps" folder so every time, it's a fresh new app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the fix should be you can change the number in the "download-times.json" before you copy the app.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 01:22:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1600271#M18206</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2025-03-28T01:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Caching dev version automation</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1610571#M18720</link>
      <description>&lt;P&gt;Thanks, this worked. I think I got confused because of this section&amp;nbsp;&lt;A href="https://developers.arcgis.com/experience-builder/guide/deployment-topics/#service-worker-cache" target="_blank"&gt;https://developers.arcgis.com/experience-builder/guide/deployment-topics/#service-worker-cache&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 19:03:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/caching-dev-version-automation/m-p/1610571#M18720</guid>
      <dc:creator>LondonWalker</dc:creator>
      <dc:date>2025-04-30T19:03:07Z</dc:date>
    </item>
  </channel>
</rss>

