Development docs
  • Introduction
  • General information
    • Development Ecosystem
    • Documentation
    • Testing
    • Continuous Integration
    • Code Style
    • Paradigms
    • Design Patterns
    • Architecture
    • Refactoring
    • Date Formats
  • Various
    • Technologies and services
      • Travis
      • GitHub
    • Databases
      • Database Kinds
      • Style Guide
      • Joins
    • Web
      • Template View
      • Interactive View
      • Open Graph
      • Twitter Card
    • Parsers
    • Regular Expression
    • File Formats
      • Properties
    • Logging
  • git
    • Configuration files
      • gitignore
      • gitattributes
    • Gitflow
    • Tools
  • Web
    • REST
    • SOAP
  • Architecture
    • SOA
  • Object Oriented Programming
    • Returns
  • Jenkins
    • Pipeline
      • Steps
      • Environment
      • Notifications
      • Scripts
  • Java
    • Environment
      • Development Ecosystem
      • IDE
    • General
    • Interfaces and Generics for a Service
      • Dependencies
      • Type Errors
      • Nested Type Errors
    • Creating New Instances Dynamically
      • Using Classes
      • Using Providers
Powered by GitBook
On this page
  • Load from Maven POM
  • Set Up Manually

Was this helpful?

  1. Jenkins
  2. Pipeline

Environment

Load from Maven POM

environment {
   PROJECT_VERSION = readMavenPom().getVersion()
   PROJECT_ARTIFACT_ID = readMavenPom().getArtifactId()
   PROJECT_GROUP_ID = readMavenPom().getGroupId()
   PROJECT_NAME = readMavenPom().getName()
   REPOSITORY_URL = readMavenPom().getDistributionManagement().getRepository().getUrl()
   WAR_DEPLOYMENT_PATH = readMavenPom().getProperties().getProperty('deployment.path')
}

Set Up Manually

env.DAILY_BUILD = isDailyBuild()
env.MAIL_PROJECT_NAME = "${env.JOB_NAME} [${currentBuild.number}] ${PROJECT_VERSION}"
PreviousStepsNextNotifications

Last updated 6 years ago

Was this helpful?