- 
                Notifications
    You must be signed in to change notification settings 
- Fork 554
feat: Audit ci trigger, precd and post cd trigger so that retrigger can happen from last failed config snapshot #6659
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
          
     Merged
      
      
    
  
     Merged
                    Changes from 14 commits
      Commits
    
    
            Show all changes
          
          
            25 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      d1c1fb9
              
                audit trigger initial code
              
              
                prakash100198 f6f3328
              
                more refactoring in TriggerAuditHook and workflow config snapshot
              
              
                prakash100198 d5ef9b2
              
                Merge branch 'develop' into audit-trigger
              
              
                prakash100198 f9c6111
              
                script number change
              
              
                prakash100198 c57e828
              
                save trigger audit flow completed
              
              
                prakash100198 3422597
              
                before saving workflow json compress using CompressionHelper functions
              
              
                prakash100198 dae27af
              
                remove unnecessary code
              
              
                prakash100198 60393a4
              
                retrigger flow incorporated
              
              
                prakash100198 524205a
              
                createWorkflowTemplate -> createWorkflowTemplateAndAuditTrigger
              
              
                prakash100198 1c0f741
              
                fix
              
              
                prakash100198 38e220d
              
                base64 encode compressed data
              
              
                prakash100198 cb6bbeb
              
                set infra config to retriggered ci
              
              
                prakash100198 32163c7
              
                Merge branch 'develop' into audit-trigger
              
              
                prakash100198 23580f7
              
                make
              
              
                prakash100198 58ccedf
              
                small fix
              
              
                prakash100198 fd18069
              
                code review incorporate 1
              
              
                prakash100198 32a3202
              
                minor bug fix
              
              
                prakash100198 df365d2
              
                add debug log
              
              
                prakash100198 87fc9bb
              
                remove unwanted code
              
              
                prakash100198 259296f
              
                Merge branch 'develop' into audit-trigger
              
              
                prakash100198 c6641ec
              
                remove unwanted code
              
              
                prakash100198 a2a7e9c
              
                remove comment
              
              
                prakash100198 deeb15a
              
                mask DockerPassword, AccessKey , SecretKey, DockerCert in
              
              
                prakash100198 6007160
              
                change script number
              
              
                prakash100198 188483d
              
                Merge branch 'develop' into audit-trigger
              
              
                prakash100198 File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
      
      Oops, something went wrong.
      
    
  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              Large diffs are not rendered by default.
      
      Oops, something went wrong.
      
    
  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| package adaptor | ||
|  | ||
| import ( | ||
| "github.com/devtron-labs/devtron/internal/sql/repository/pipelineConfig" | ||
| "time" | ||
| ) | ||
|  | ||
| func GetCiWorkflowFromRefCiWorkflow(refCiWorkflow *pipelineConfig.CiWorkflow, workflowStatus string, triggeredBy int32) *pipelineConfig.CiWorkflow { | ||
| return &pipelineConfig.CiWorkflow{ | ||
| Name: refCiWorkflow.Name, | ||
| Status: workflowStatus, // starting CIStage | ||
| StartedOn: time.Now(), | ||
| CiPipelineId: refCiWorkflow.CiPipelineId, | ||
| Namespace: refCiWorkflow.Namespace, | ||
| BlobStorageEnabled: refCiWorkflow.BlobStorageEnabled, | ||
| GitTriggers: refCiWorkflow.GitTriggers, | ||
| CiBuildType: refCiWorkflow.CiBuildType, | ||
| TriggeredBy: triggeredBy, | ||
| ReferenceCiWorkflowId: refCiWorkflow.Id, // Reference to original workflow | ||
| ExecutorType: refCiWorkflow.ExecutorType, | ||
| EnvironmentId: refCiWorkflow.EnvironmentId, | ||
| } | ||
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.