Execute the Pipeline, or stage, inside a pod implemented on a Kubernetes group. The Jenkinsfile must be loaded from either a Multibranch Pipeline or a Pipeline from SCM in order to use this option. The Pod template is defined within the kubernetes < >block. As an example, inside it, you would define it as follows if you want a pod with a Kaniko container:
You shall have to develop a key aws-secret for Kaniko in order to authenticate with ECR. This key should retain the articles.
one other amount is just a ConfigMap that should retain the endpoint of your ECR registry. As an example:
Popular Options
They are an options that are few are placed on a couple of representative implementations. They’re not needed unless clearly stated.
A sequence. The label or label condition on which to run the Pipeline or stage that is individual .
This program is legitimate for node , docker , and dockerfile , and it is needed for node .
A sequence. Run the Pipeline or stage that is individual representative is put on in this customized workplace, as opposed to the standard. It may be either a family member course, in which particular case the customized workplace is going to be beneath the workplace root in the node, or a path that is absolute. For instance:
This program is legitimate for node , docker , and dockerfile .
A boolean, false by default. If real, run the container regarding the node specified during the top-level associated with Pipeline, when you look at the exact same workplace, as opposed to on a unique node completely.
This choice is legitimate for docker and dockerfile , and just has a result when applied to a representative for the specific phase .
A sequence. Runtime arguments to pass through to docker run .
This program is legitimate for docker and dockerfile .
The post area describes a number of extra actions which are run upon the conclusion of the Pipeline’s or run that is stage’swith regards to the precise location of the post part inside the Pipeline). post can help some of the post-condition that is following: constantly , changed , fixed , regression , aborted , failure , success , unstable , unsuccessful , and cleaning . These condition blocks let the execution of actions inside each condition with regards to the conclusion status associated with the Pipeline or phase. The problem obstructs are performed within the purchase shown below.
Into the pipeline that is top-level and every phase block.
Conditions
Run the actions into the post part no matter what the completion status for the Pipeline’s or stage’s run.
Only operate the direct lenders for title loans for Connecticut actions in post in the event that present Pipeline’s or run that is stage’s a various conclusion status from the past run.
Only operate the actions in post in the event that present Pipeline’s or stage’s run is effective additionally the past run failed or had been unstable.
Only operate the actions in post in the event that present Pipeline’s or stage’s run’s status is failure, unstable, or aborted plus the past run was successful.
Only operate the actions in post in the event that current Pipeline’s or stage’s run has an “aborted” status, frequently because of the Pipeline being manually aborted. This really is typically denoted by grey into the internet UI.
Only operate the actions in post in the event that present Pipeline’s or stage’s run has a “failed” status, typically denoted by red into the internet UI.
Only operate the actions in post in the event that current Pipeline’s or stage’s run has a “success” status, typically denoted by blue or green into the internet UI.
Only operate the steps in post in the event that present Pipeline’s or run that is stage’s an “unstable” status, often brought on by test problems, rule violations, etc. This can be typically denoted by yellowish when you look at the internet UI.
Only operate the actions in post in the event that present Pipeline’s or run that is stage’s perhaps not a “success” status. This might be typically denoted within the internet UI according to the status mentioned before.
Run the steps on this page condition after each other post condition happens to be assessed, whatever the Pipeline or stage’s status.
Leave a Reply