eaglelandsonce commited on
Commit
e20d0fb
·
verified ·
1 Parent(s): 26c7312

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -26
app.py CHANGED
@@ -27,32 +27,6 @@ if st.button("Validate YAML"):
27
  else:
28
  st.warning("Please paste your YAML configuration.")
29
 
30
- # Simulate pipeline execution
31
- def execute_pipeline(parsed_yaml):
32
- stages = parsed_yaml.get("stages", [])
33
- if not stages:
34
- st.warning("No stages found in the pipeline.")
35
- return
36
-
37
- for stage in stages:
38
- stage_name = stage.get("stage", "Unnamed Stage")
39
- st.write(f"Starting stage: {stage_name}...")
40
- time.sleep(2) # Simulate execution time
41
-
42
- jobs = stage.get("jobs", [])
43
- for job in jobs:
44
- job_name = job.get("job", "Unnamed Job")
45
- st.write(f"Executing job: {job_name}...")
46
- time.sleep(2) # Simulate execution time
47
-
48
- steps = job.get("steps", [])
49
- for step in steps:
50
- step_display = step.get("displayName", "Unnamed Step")
51
- st.write(f"Running step: {step_display}...")
52
- time.sleep(2) # Simulate execution time
53
-
54
- st.success(f"Stage {stage_name} completed successfully.")
55
-
56
  # Enhanced simulation of pipeline stages with dependencies and conditions
57
  def enhanced_execute_pipeline(parsed_yaml):
58
  stages = parsed_yaml.get("stages", [])
 
27
  else:
28
  st.warning("Please paste your YAML configuration.")
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  # Enhanced simulation of pipeline stages with dependencies and conditions
31
  def enhanced_execute_pipeline(parsed_yaml):
32
  stages = parsed_yaml.get("stages", [])