Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File input option type for Jobs #2351

Merged
merged 64 commits into from
Mar 14, 2017
Merged

Conversation

gschueler
Copy link
Member

Adds a "File" option type for jobs.

  • Allows uploading files when executing jobs or via API
  • API support for uploading files/getting file info
  • Each uploaded file is assigned a UUID. You can run a job via the API using -optionname uuid to use the specified file for the named (file) option.
  • Uploaded files which are unused will become "expired" after a certain amount of time, and removed
  • Plugin interface for plugins to handle uploaded files
  • "Temporary file" plugin implementation which stores files in a temp dir, and removes uploaded files after use by the execution.
  • Execution page shows file information
  • Project archive export/import includes file info.
  • SHA-256 verification when using files in executions

When you create a File option, and upload a file, the ${option.myoption} value is the file UUID. Use ${file.myoption} for the local file path on Rundeck server. ${file.myoption.sha} is SHA256 of the file, and ${file.myoption.fileName} is the original file name if available.

Fix #134

rundeck-config:
rundeck.execution.logs.fileStoragePlugin=storage-tree

#example: using the storage-tree with the DB backend storing under the /logs path
rundeck.storage.provider.1.type=db
rundeck.storage.provider.1.path=/logs
rundeck.storage.provider.1.config.namespace=logstore

framework.properties: (optional)
framework.plugin.ExecutionFileStorage.storage-tree.basePath=/logs
remove files after execution completes
rundeck.fileUploadService.tempfile.maxsize

default "200m"
@ksachdeva11
Copy link

@gschueler which release will have these changes?

@gschueler
Copy link
Member Author

@ksachdeva11 2.8

@ksachdeva11
Copy link

@gschueler Hi, when is 2.8 version releasing?

gschueler added a commit that referenced this pull request Apr 11, 2017
@gschueler gschueler deleted the feature/fileupload branch April 11, 2017 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants