Hi Guys,
We are trying to create CI/CD pipeline for our MuleSoft projects and we found that CirrcleCI is not parsing decimal values.
We have one parameters where we need to specify the workers size and here is sample command that is failing.
mvn:deploy -Dworkers=0.1 -DworkerType=micro.
Gettimg error that unable to parse 0.1 to int.
Any suggestions here ?
Hi @Vanchiv can you share your config to better understand you specific issue?
@punkdata attached the error logs and the config.yml file.
Config.yml :
version:
2.1
Define the jobs we want to run for this project
jobs:
build:
docker:
- image: cimg/openjdk:15.0.1
working_directory: ~/repo
environment:
MAVEN_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum “pom.xml” }}
- v1-dependencies-
- run: mvn clean
- run: mvn test -s settings.xml
- run: mvn package -s settings.xml
- run: mvn install -s settings.xml
- run:
case $CIRCLE_BRANCH in
‘main’) export environment=‘Sandbox’;;
‘develop’) export environment=‘Sandbox’;;
esac;
echo $environment;
mvn mule:deploy -Dworkers=0.1 -DworkerType=Micro -
Denvironment=$environment -Dredeploy=true -DmuleVersion=4.3.0
Error log :
[INFO] -------------------------------------------------------------------
[ERROR] Failed to execute goal org.mule.tools.maven:mule-mavenplugin:3.3.5:clean (default-clean) on project hello-mule: Unable to parse
configuration of mojo org.mule.tools.maven:mule-maven-plugin:3.3.5:clean
for parameter workers: Cannot convert ‘0.1’ to int: For input string: “.1”
under radix 8 -> [Help 1]