Skip to content

Commit 08591f9

Browse files
committed
last-one
1 parent fd21c99 commit 08591f9

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Jenkinsfile

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
pipeline {
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

0 commit comments

Comments
 (0)