My pipeline has been running smoothly for a long time, but on March 21 it started failing with no code change on my side.
I'm using the image maven:3.3.9 for the pipeline which is just running mvn -B package with frontend-maven-plugin for minifying and versioning assets (https://github.com/eirslett/frontend-maven-plugin).
The error I'm getting is at the execution of that plugin:
<span>[INFO] --- frontend-maven-plugin:1.0:grunt (grunt build) @ ... ---</span><span>[INFO] Running 'grunt build' in /opt/atlassian/pipelines/agent/build</span><span>[ERROR] /opt/atlassian/pipelines/agent/build/node_modules/mkdirp/index.js:4</span><span>[ERROR] const {mkdirpNative, mkdirpNativeSync} = require('./lib/mkdirp-native.js')</span><span>[ERROR] ^</span><span>[ERROR] </span><span>[ERROR] SyntaxError: Unexpected token {</span><span>[ERROR] at exports.runInThisContext (vm.js:53:16)</span>
Locally, it works fine with maven 3.6.0, so I tried to upgrade the image to maven:3.6-jdk-8 with no success.
Have someone else faced this problem?