Comments (7)
Please note that the regular expression does contain the backslash. It has been swallowed by the github form.
from jenkins-rundeck-plugin.
Also, if I double escape with backslash, the Jenkins job runs fine but the resulting URL is completely wrong:
http://packages/deb/elpq/snapshot/%7B.*.deb%7D:
from jenkins-rundeck-plugin.
I'm seeing this too. Jenkins sees the artifact and is able to archive it, but selecting even artifact=$ARTIFACT_NAME{.*} returns the same error.
This is when using a maven build with the release:perform goal.
from jenkins-rundeck-plugin.
I have a suspicion the issue is:
Matcher matcher = TOKEN_ARTIFACT_NAME_PATTERN.matcher(input);
int idx = 0;
while (matcher.find(idx)) {
[snip]
idx = matcher.start() + artifact.getFileName().length();
http://docs.oracle.com/javase/6/docs/api/java/util/regex/Matcher.html seems to state that the matcher stores a copy of the string. If the result of the replacement results in an index that is longer than the entire original option input, the error will occur.
from jenkins-rundeck-plugin.
That was it!
while (matcher.find(idx)) {
needs to be while (matcher.reset(input).find(idx)) {
. PR incoming.
from jenkins-rundeck-plugin.
On a related note, Maven 'automatic artifact archiving' does not play well this this feature, instead one must configure it as a post-build action.
from jenkins-rundeck-plugin.
One additional note; the intent of the 'idx' logic isn't obvious -- matcher.find() acts as an iterator, so keeping track of where the last match ended shouldn't be necessary.
from jenkins-rundeck-plugin.
Related Issues (17)
- Provide build data to job options HOT 3
- feature request: configure multiple rundecks from a single jenkins configuration. HOT 5
- Crashes jenkins on startup on Centos 6.5
- Rundeck auth token should not be kept in plain text form
- Start notification
- feature request: Rundeck-Credentials per job
- Invalid Rundeck configuration
- Unable to connect to Rundeck instance using port 5443 over SSL HOT 3
- rundeck behind proxy
- Unable to connect to Rundeck instance using Jenkins Rundeck plugin HOT 1
- RundeckApiException due to a lowercase error HOT 1
- 500 Error due to rundeck's retry
- I'd like the ability to call sequential RunDeck jobs from a single Jenkins job
- NodeFilter ignored
- Webhooks to Jenkins with matrix-based security
- link to job from Jenkins build history not reflecting URL parameter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jenkins-rundeck-plugin.