Skip to content

Commit

Permalink
Search for pending tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewinne committed Mar 4, 2015
1 parent a6dabea commit 69cb070
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ deploy:
provider: releases
api_key:
secure: IP25v/puP1qgGfCRWG+/7EKDU6pyyaU54WRqqNICi8qcubmXxTmfY6/QJeF2bS+MLFZBfttUjdnHWxOMTWBUAP8HFIRkgGHsFIHxiFYbUaKdRXJOZPElpP08mm7HU1Lz/Tz0rU99ry9TVG28RfmGvpsIM6+OdlG8SDdcESqHacg=
file: build/libs/xlr-xlr-plugin-1.6.jar
file: build/libs/xlr-xlr-plugin-1.6.1.jar
skip_cleanup: true
on:
all_branches: true
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
}
}

version=1.6
version="1.6.1"

apply plugin: "com.github.hierynomus.license"
apply plugin: 'java'
Expand Down
13 changes: 4 additions & 9 deletions src/main/resources/xlr/GetTaskId.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,12 @@
taskPath = None
for task in tasks:
print "Received task with title: [%s].\n" % task.title
if task.title == taskTitle:
taskPath = task.id
if task.title == taskTitle and task.status == "PLANNED":
taskId = task.id
break

if taskPath:
print "Task with title [%s] found with id [%s].\n" % (taskTitle, taskPath)
taskPath = taskPath.replace('/','-')
prefix = 'Applications-'
taskId = taskPath
if taskPath.startswith(prefix):
taskId = taskPath[len(prefix):]
if taskId:
print "Task with title [%s] found with id [%s].\n" % (taskTitle, taskId)
sys.exit(0)

print "Task with title [%s] not found.\n" % taskTitle
Expand Down

0 comments on commit 69cb070

Please sign in to comment.