Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,370
Community Members
 
Community Events
176
Community Groups

Pipeline running with error

Hi there,

 

This is my pipeline script

 

image: maven:3.6.3

pipelines:

default:

- parallel:

- step:

name: Build and Test

caches:

- maven

script:

- mvn -X -e -B verify --file pom.xml

artifacts: # defining the artifacts to be passed to each future step.

- dist/**

- reports/*.txt

- target/surefire-reports

after-script:

# Collect checkstyle results, if any, and convert to Bitbucket Code Insights.

- pipe: atlassian/checkstyle-report:0.3.0

- step:

name: Security Scan

script:

# Run a security scan for sensitive data.

- pipe: atlassian/git-secrets-scan:0.5.1
But I'm getting following error
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-readable POM /opt/atlassian/pipelines/agent/build/pom.xml: /opt/atlassian/pipelines/agent/build/pom.xml (No such file or directory) @
@
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] Non-readable POM /opt/atlassian/pipelines/agent/build/pom.xml: /opt/atlassian/pipelines/agent/build/pom.xml (No such file or directory) @
at org.apache.maven.graph.DefaultGraphBuilder.collectProjects (DefaultGraphBuilder.java:414)
at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor (DefaultGraphBuilder.java:405)
at org.apache.maven.DefaultMaven.buildGraph (DefaultMaven.java:507)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:219)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:78)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:567)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR] The project (/opt/atlassian/pipelines/agent/build/pom.xml) has 1 error
[ERROR] Non-readable POM /opt/atlassian/pipelines/agent/build/pom.xml: /opt/atlassian/pipelines/agent/build/pom.xml (No such file or directory)
java.io.FileNotFoundException: /opt/atlassian/pipelines/agent/build/pom.xml (No such file or directory)
at java.io.FileInputStream.open0 (Native Method)
at java.io.FileInputStream.<init> (FileInputStream.java:153)
at org.apache.maven.building.FileSource.getInputStream (FileSource.java:52)
at org.apache.maven.model.building.DefaultModelBuilder.readModel (DefaultModelBuilder.java:552)
at org.apache.maven.graph.DefaultGraphBuilder.collectProjects (DefaultGraphBuilder.java:414)
at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor (DefaultGraphBuilder.java:405)
at org.apache.maven.DefaultMaven.buildGraph (DefaultMaven.java:507)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:219)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:78)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:567)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR]

1 answer

0 votes
Pramodh M Community Leader Jan 21, 2022

Hi @boomramada 

It looks like your working directory is different from where the project is building the maven project. You should navigate to the directory where your project contains pom.xml file

Can you try the below Snippet and let me know if it works?

https://gist.github.com/64BitChris/de10c2f3d85b65000f2a96ef549d261b

Thanks,
Pramodh

I cant run that, it says I cant find the create-settings.sh

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events