Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

Refactor Jenkins pipeline to use 'agent any' for improved flexibility in execution environment

Enno Gelhaus762384d45ee5
diff --git a/Jenkins/Build.Jenkinsfile b/Jenkins/Build.Jenkinsfile
index 923bb392a..b4924c916 100644
--- a/Jenkins/Build.Jenkinsfile
+++ b/Jenkins/Build.Jenkinsfile
@@ -1,9 +1,7 @@
// Declarative Pipeline for building Node.js application and running SonarQube analysis triggered by a push event.
pipeline {
// Defines the execution environment. Replace 'linux-agent' with your specific agent label.
- agent {
- label 'linux-agent'
- }
+ agent any
// Configure options, primarily to ensure full Git history is fetched for SonarQube and versioning.
options {
diff --git a/Jenkins/BuildPR.Jenkinsfile b/Jenkins/BuildPR.Jenkinsfile
index 12be04577..49a6b8683 100644
--- a/Jenkins/BuildPR.Jenkinsfile
+++ b/Jenkins/BuildPR.Jenkinsfile
@@ -1,10 +1,7 @@
// Declarative Pipeline for building Node.js application and running SonarQube analysis for a Pull Request.
pipeline {
// Defines the execution environment. Replace 'linux-agent' with your specific agent label.
- agent {
- label 'linux-agent'
- }
-
+ agent any
// Configure options, primarily to ensure full Git history is fetched for SonarQube and versioning.
options {
// Skip the default checkout to manage it explicitly and ensure fetch-depth: 0.