49
Views
13
Comments
[Trigger Pipeline] Could not trigger Pipeline because there are still pending changes to be tagge
trigger-pipeline
Web icon
Forge asset by OutSystems Lab

I created an application and created a tag in lifetime. I have set up the pipeline trigger to run a pipeline in jenkins, if I run it manually everything works, but I want it to check the versions of the applications and run the pipeline automatically.

To do this, I set the 'CheckNewVersionsForPipeline' timer but I get the following error "Could not trigger 'Outsystems-CD' because there are still pending changes to be tagged."

What could this be, since there are no pending changes in my application?

2019-03-18 15-58-58
Duarte Castaño
Staff

Hi Tiago,

Probably by the time the timer runs at least one of the apps within the 'Outsystems-CD' pipeline scope has changes that were not yet tagged.


The timer performs validations based on certain site properties, for your use case maybe you want to check the following ones:

  • Feature_IgnorePendingChanges: Feature flag to bypass the check for pending changes (i.e. changes not yet tagged) to trigger a pipeline.

  • Feature_AutoTagging: Enable automatic tagging of modified applications when triggering a pipeline. Make sure the provided  ServiceAccountToken has enough permissions to create the tag.


Cheers,

Duarte CastaƱo 
DevOps Domain Expert  | OutSystems


UserImage.jpg
Tiago Lopes

Hi Duarte,


I only have this application in the pipeline configuration and I don't have any pending changes and the tag version 0.4 has been generated.

UserImage.jpg
Tiago Lopes


Do other applications in the outsystems interfere or does it only matter which one is configured for the pipeline, in this case "TestApp"?

2023-05-16 02-25-49
Xiao Hui

I am having a similar issue, mine is timer CheckNewVersionsForPipeline run with 0s duration and not able to trigger the pipeline to Azure DevOps after I upgrade the version from 2.2.0 to 2.6.0.

When i rollback the version to 2.2.0, the timer works as normal. Anyone has any idea? 

I have check the timer logs, no errors.

2023-05-16 02-25-49
Xiao Hui

Hi @Duarte CastaƱo - Do you have any idea of the timer problem i facing?

I am having a similar issue, mine is timer CheckNewVersionsForPipeline run with 0s duration and not able to trigger the pipeline to Azure DevOps after I upgrade the version from 2.2.0 to 2.6.0.

When i rollback the version to 2.2.0, the timer works as normal. Anyone has any idea? 

I have check the timer logs, no errors.

2019-03-18 15-58-58
Duarte Castaño
Staff

Hi Xiao,


As mentioned in the release notes, the CheckNewVersionsForPipeline timer is now used to trigger CI/CD pipelines based on a predefined schedule when changes are detected.


To resolve your issue, ensure you've correctly specified which triggers should activate the pipeline on a schedule. This configuration can be found on the pipeline's configuration screen, under the "Trigger on Schedule" setting (the pipeline will trigger depending on the enabled features, as I explained in my previous reply).



Duarte CastaƱo 
DevOps Domain Expert  | OutSystems

2023-05-16 02-25-49
Xiao Hui

hi @Duarte CastaƱo - I have checked the Trigger on schedule, but it does works. It shows a valid service account token must be configured. 

I did not change the pipeline server credentials, may I know if the service account token is referring to which value?

2023-05-16 02-25-49
Xiao Hui

Hi @Duarte CastaƱo - The token issue is resolved. Now i have another issue, please see picture below:

are these the correct URL to use?

Thanks in advanced.

2019-03-18 15-58-58
Duarte Castaño
Staff

Hi Xiao,


Yes, you need to set up those before you use the component.
Here are some follow-up steps to help you set up the needed configs.


Best regards,
Duarte CastaƱo 
DevOps Domain Expert  | OutSystems 

2023-05-16 02-25-49
Xiao Hui

Thanks for replying. I have done the setup but now hitting 403 forbidden when the timer run. Calling the lifetime API is internal i suppose, am i correct?

2023-05-16 02-25-49
Xiao Hui

Yes, I have created an service account and put the token at the site properties, I still getting the 403 error. 

When I rollback to previous version, even the deployment API default URL restored to the default, it can work. 

I cannot understand how it works. 

I follow the step by step guide to setup as well, but just not working for the latest version.

2019-03-18 15-58-58
Duarte Castaño
Staff

Hi Xiao,


Yes, the Trigger Pipeline Plugin uses the LifeTime API to get all the needed information and perform actions to trigger pipelines.

Please make sure the service account you've provided has enough privileges. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.