My blog site https://davidjones.sportronics.com.au
I submit to Azure Devops where it is built as a Jekyll site.
Has worked fine for a several years with only minor updates.
Yesterday it failed:
Pipeline steps:
- Use Ruby > 3.0.0
- Install Jekyll and Bundler
- Install Gems
- Build
- Copy site to staging directory
- Publish Artifact: _site
Pipeline step: Use Ruby > 3.0.0
Script: Version Spec 3.1.4
Was this (this worked for some time) but failed today.
Devops says available versions are 3.0.7 or 3.1.5
Worked on previous submission mid May.
Tried Version specs as below but fails at Build
- 3.1.5
- 3.0.7
> 3.0.0
Fir this: Found tool in cache: Ruby 3.1.5 x64
Nb: Local build uses 3.2.2
With these, got past the version check runs next 2 steps OK but build fails:
C:/hostedtoolcache/windows/Ruby/3.1.5/x64/lib/ruby/3.1.0/csv/parser.rb:3:in `require': 126: The specified module could not be found.
Install Jekyll and bundler:
Script:gem install jekyll bundler
Final lines:
Done installing documentation for bundler after 0 seconds
29 gems installed
Finishing: Install Jekyll and bundler
Install Gems
Script: bundle install
Final Lines:
Bundle complete! 10 Gemfile dependencies, 43 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Finishing: Install Gems
Build:
Script: bundle exec jekyll build
Output:
Starting: Build
==============================================================================
Task : Command line
Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version : 2.237.1
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
Script contents: shell
bundle exec jekyll build
========================== Starting Command Output ===========================
"C:Windowssystem32cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:a_temp9815d7ee-08b2-4491-934a-b1fb6ffcea97.cmd""
C:/hostedtoolcache/windows/Ruby/3.1.5/x64/lib/ruby/3.1.0/csv/parser.rb:3:in `require': 126: The specified module could not be found. - C:/hostedtoolcache/windows/Ruby/3.1.5/x64/lib/ruby/gems/3.1.0/gems/strscan-3.1.0/lib/strscan.so (LoadError)
from C:/hostedtoolcache/windows/Ruby/3.1.5/x64/lib/ruby/3.1.0/csv/parser.rb:3:in `<top (required)>'
from C:/hostedtoolcache/windows/Ruby/3.1.5/x64/lib/ruby/3.1.0/csv.rb:98:in `require_relative'
from C:/hostedtoolcache/windows/Ruby/3.1.5/x64/lib/ruby/3.1.0/csv.rb:98:in `<top (required)>'
from C:/hostedtoolcache/windows/Ruby/3.1.5/x64/lib/ruby/gems/3.1.0/gems/jekyll-4.3.3/lib/jekyll.rb:28:in `require'
from C:/hostedtoolcache/windows/Ruby/3.1.5/x64/lib/ruby/gems/3.1.0/gems/jekyll-4.3.3/lib/jekyll.rb:28:in `<top (required)>'
from C:/hostedtoolcache/windows/Ruby/3.1.5/x64/lib/ruby/gems/3.1.0/gems/jekyll-4.3.3/exe/jekyll:8:in `require'
from C:/hostedtoolcache/windows/Ruby/3.1.5/x64/lib/ruby/gems/3.1.0/gems/jekyll-4.3.3/exe/jekyll:8:in `<top (required)>'
from C:/hostedtoolcache/windows/Ruby/3.1.5/x64/bin/jekyll:32:in `load'
from C:/hostedtoolcache/windows/Ruby/3.1.5/x64/bin/jekyll:32:in `<main>'
##[error]Cmd.exe exited with code '1'.
Finishing: Build