Skip to content

Commit 8fd8e2f

Browse files
authored
Merge branch 'master' into JENKINS-23729
2 parents b0971a0 + 4b5759a commit 8fd8e2f

13 files changed

Lines changed: 222 additions & 72 deletions

File tree

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
version: 2
3+
updates:
4+
- package-ecosystem: maven
5+
directory: "/"
6+
schedule:
7+
interval: daily
8+
open-pull-requests-limit: 10

.github/release-drafter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_extends: .github
2+
name-template: v$NEXT_MINOR_VERSION 🌈
3+
tag-template: validating-string-parameter-$NEXT_MINOR_VERSION
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Automates creation of Release Drafts using Release Drafter
2+
# More Info: https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- uses: release-drafter/release-drafter@v5
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Version History
2+
3+
### Future releases can be found [here](https://github.com/jenkinsci/validating-string-parameter-plugin/releases)
4+
5+
## Version 2.4 (20-Apr-2018)
6+
7+
- Fixes Pipeline compatibility
8+
9+
## Version 2.3 (04-Feb-2015)
10+
11+
- Fixed links to regex pattern documentation
12+
- Use codemirror for the description field
13+
14+
## Version 2.2 (13-Sep-2011)
15+
16+
- [JENKINS-10139](http://issues.jenkins-ci.org/browse/JENKINS-10139)
17+
Fix for regex containing back slashes
18+
19+
## Version 2.1 (27-Feb-2011)
20+
21+
- If an invalid value is passed to the build, the build will be
22+
aborted and an error message will display in console indicating the
23+
parameter and failing value
24+
25+
## Version 2.0 (19-Feb-2011)
26+
27+
- Migrated code to jenkins and performed release
28+
29+
## Version 1.4 (13-Oct-2010)
30+
31+
- [JENKINS-7794](http://issues.jenkins-ci.org/browse/JENKINS-6158)
32+
validation check doesn't work if Jenkins is hosted with a context
33+
root
34+
35+
## Version 1.3 (22-May-2010)
36+
37+
- [JENKINS-6158](http://issues.jenkins-ci.org/browse/JENKINS-6158)
38+
Build will fail if invalid parameter is passed
39+
- [JENKINS-6160](http://issues.jenkins-ci.org/browse/JENKINS-6160)
40+
Jenkins will record regex used to validate the build parameter as
41+
part of build configuration and display as tooltip on the parameter
42+
page.
43+
44+
## Version 1.2 (29-Aug-2009)
45+
46+
- Used the javascript function encodeURIComponent to properly handle
47+
characters within the user entered values for regex and validation
48+
error message. (Issue
49+
[4334](http://wiki.jenkins-ci.org/pages/editpage.action?pageId=38928603))
50+
51+
## Version 1.1 (28-Aug-2009)
52+
53+
- Supported the release plugins as well as any other plugin that uses
54+
build parameters
55+
56+
## Version 1.0 (24-Aug-2009)
57+
58+
- Initial Version

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Validating String Parameter Plugin
2+
3+
[![Jenkins](https://ci.jenkins.io/job/Plugins/job/validating-string-parameter-plugin/job/master/badge/icon)](https://ci.jenkins.io/job/Plugins/job/validating-string-parameter-plugin/job/master/)
4+
[![Jenkins Plugin](https://img.shields.io/jenkins/plugin/v/validating-string-parameter.svg)](https://plugins.jenkins.io/validating-string-parameter)
5+
[![GitHub release](https://img.shields.io/github/release/jenkinsci/validating-string-parameter-plugin.svg?label=changelog)](https://github.com/jenkinsci/validating-string-parameter-plugin/releases/latest)
6+
7+
The validating string parameter plugin contributes a new parameter type
8+
to Jenkins that supports regular expression validation of the user's
9+
entered parameter.
10+
11+
# Usage
12+
13+
This plugin is used wherever build parameter selection is available,
14+
most commonly in the job configuration page by enabling parameterized
15+
builds (this parameter type will also be available as release parameters
16+
using the [release
17+
plugin](https://plugins.jenkins.io/release/)).
18+
19+
Configure the parameter by entering a name, regular expression to
20+
validate the entered value and optionally a default value, an error
21+
message shown when the user entered value fails the regular expression
22+
check and a parameter description.
23+
![](docs/images/configure.PNG)
24+
25+
When a build is requested, the user will be prompted with the parameters
26+
to enter. Users enter the parameter as normal, but will now be prompted
27+
with an error message if the entered value does not meet the regular
28+
expression.
29+
30+
![](docs/images/build-error.PNG)
31+
32+
Once the entered value meets the configured regular expression, the
33+
error message is no longer displayed.
34+
35+
![](docs/images/build-success.PNG)

README.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/images/build-error.PNG

5.99 KB
Loading

docs/images/build-success.PNG

4.74 KB
Loading

docs/images/configure.PNG

14.3 KB
Loading

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<parent>
55
<groupId>org.jenkins-ci.plugins</groupId>
66
<artifactId>plugin</artifactId>
7-
<version>3.5</version>
7+
<version>4.15</version>
88
</parent>
99
<artifactId>validating-string-parameter</artifactId>
1010
<packaging>hpi</packaging>
1111
<name>Validating String Parameter Plugin</name>
1212
<version>2.6-SNAPSHOT</version>
13-
<url>http://wiki.jenkins-ci.org/display/JENKINS/Validating+String+Parameter+Plugin</url>
13+
<url>https://github.com/jenkinsci/validating-string-parameter-plugin</url>
1414

1515
<properties>
1616
<java.level>8</java.level>

0 commit comments

Comments
 (0)