Variables Replace

ID: variables-replace-plugin

This Jenkins plugin allow to replace easily variables in files content.

Features

  • Search and replace variables using

        - FilePath,

        - Variables prefix,

        - Variables suffix

        - Variables list ( Name / Value )

Requirements

Jenkins

Jenkins version 2.7.3 or newer is required.


Freestyle job configuration


Pipeline job configuration

variableReplace(
	configs: [
		variablesReplaceConfig(
			configs: [
				variablesReplaceItemConfig( 
					name: 'DATABASE_HOST',
					value: 'localhost'
				),
				variablesReplaceItemConfig( 
					name: 'DATABASE_NAME',
					value: 'my_db'
				),
				variablesReplaceItemConfig( 
					name: 'DATABASE_PORT',
					value: '3306'
				),
				variablesReplaceItemConfig( 
					name: 'DATABASE_PASSWORD',
					value: '123456'
				)
			],
			fileEncoding: 'UTF-8', 
			filePath: 'database-config.php', 
			variablesPrefix: '#{', 
			variablesSuffix: '}#'
            )]
)
ArchivesGet past versions
Version: 1.0.0
Released:
Requires Jenkins 2.7.3
Installs: 310
Labels
This plugin has no labels
Maintainers
JeeDay
Help us improve this page!
This content is served from the Jenkins Wiki the read-only state. We recommend moving the plugin documentation to GitHub, see the guidelines.