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

[Enhancement] Optimize Jenkins Pipeline for Aether Deployment #13

Open
MAVRICK-1 opened this issue Jan 21, 2025 · 2 comments
Open

[Enhancement] Optimize Jenkins Pipeline for Aether Deployment #13

MAVRICK-1 opened this issue Jan 21, 2025 · 2 comments

Comments

@MAVRICK-1
Copy link

[Enhancement] Optimize Jenkins Pipeline for Aether Deployment

Issue Type: Enhancement

Description:
The Jenkins pipeline for Aether deployment needs optimizations for better efficiency, error handling, and maintainability. The following improvements will be implemented:

Improvements:

1. Enhanced Error Handling

  • Use set -e in sh commands to ensure the pipeline exits immediately on failure.
  • Improve catchError handling for better debugging messages.

2. Optimize Environment Variables

  • Define WORK_DIR = "$WORKSPACE/aether-onramp" to avoid redundant cd commands.
  • Use withEnv for dynamic environment variables (MYIP, MYIFC).

3. Efficient Log Retrieval

  • Use a loop to fetch logs dynamically instead of multiple kubectl get pods calls.
  • Append timestamps to log filenames to prevent overwriting.

4. Performance Enhancements

  • Parallelize independent stages where possible.
  • Use mkdir -p to ensure directories exist without redundant checks.
  • Minimize unnecessary cd commands by defining working directories upfront.

5. Improved Slack Notifications

  • Ensure meaningful error messages are sent with job details.
@MAVRICK-1
Copy link
Author

@llpeterson can i work on this ?

@llpeterson
Copy link
Contributor

Absolutely. I'd recommend tackling the issue (mostly) serially, so as to avoid huge Pull Requests. Starting with (1).

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

No branches or pull requests

2 participants