File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 11pipeline {
2- agent {
3- image ' ubuntu:22.04'
4- }
2+ agent any
3+
54 stages {
65 stage(' Keploy Tests' ) {
76 steps {
87 sh '''
9- apt-get update && apt-get install -y curl kmod linux-headers-generic bpfcc-tools git openjdk-17-jdk
8+ # Update and install required packages
9+ sudo apt-get update && sudo apt-get install -y curl kmod linux-headers-generic bpfcc-tools git openjdk-17-jdk
1010
1111 # Clone the repo
1212 git clone -b chore/Integrate-github-cicd https://github.com/Achanandhi-M/samples-java.git
1313 cd samples-java/spring-petclinic/spring-petclinic-rest
1414
15- mkdir -p /sys/kernel/debug
16- mkdir -p /sys/kernel/tracing
15+ # Create directories required by eBPF
16+ sudo mkdir -p /sys/kernel/debug
17+ sudo mkdir -p /sys/kernel/tracing
1718
1819 # Download and install Keploy
1920 curl --silent -O -L https://keploy.io/install.sh && bash install.sh
2021
21- mount -t debugfs nodev /sys/kernel/debug || true
22- mount -t tracefs nodev /sys/kernel/tracing || true
22+ # Mount debugfs and tracefs if not already mounted
23+ sudo mount -t debugfs nodev /sys/kernel/debug || true
24+ sudo mount -t tracefs nodev /sys/kernel/tracing || true
2325
24- # Build the app (assuming Maven)
26+ # Build the app using Maven wrapper
2527 ./mvnw package -DskipTests
2628
2729 # Run Keploy test
You can’t perform that action at this time.
0 commit comments