Comments (4)
In a declarative pipeline, when using:
stage("x") {
agent { }
}
the time to create the agent if not available is taken into account when measuring the timing of the x
stage:
It's a same issue with a scripted pipeline written this way:
stage("x") {
node {
}
}
When inverting the syntax:
node {
stage("x") {}
}
then the computation is OK:
So it means that have to take into account the cases of:
i) declarative pipeline
ii) node creation inside a declarative stage
The case iii) node creation outside of a stage is already correct.
from ontrack-plugin.
Proposal: when computing the execution time of a stage, we go up the step tree until we find the stage step itself. We take its execution time s
.
On the way up the tree, we collect each "Allocate node" step execution time into the n
time.
The computed stage execution time will be x = s - t
.
This will solve cases i) and ii) (and also work for iii) where t = 0
)
from ontrack-plugin.
"Allocate Node: Start" (n
) and "Allocate Node: Body: Start" (b
) have to be taken into account.
If no such step is seen before we get to the stage, t = s
.
If not, t = sum(b)
where b
is the list of "Node: Body: Start" steps.
from ontrack-plugin.
Fixed in 3.4
from ontrack-plugin.
Related Issues (20)
- Option to ignore Ontrack failures HOT 1
- Validation - Build result UNSTABLE must be translated into WARNING HOT 1
- Allows use of the ontrack parameter type in declarative pipeline syntax HOT 6
- ontrack trigger is not available in pipeline HOT 15
- Feeding run info for builds and validation runs
- Can not save global configuration with 2.33.0 HOT 2
- Validation step in a parallel stage in a scripted build returns a wrong result HOT 2
- Ontrack trigger available in DSL HOT 1
- Navigation between Jenkins and Ontrack HOT 4
- Validation run with data (pipeline integration)
- Validation run with test summary data
- Allow binding parameters for the OntrackChoiceParameterDefinition DSL HOT 1
- Ontrack trigger on multiple sources HOT 1
- Improve navigation between Jenkins & Ontrack HOT 1
- Use correct graphql query in graphql example. HOT 1
- Upgrade Ontrack DSL to 3.39.4
- Parsing errors for validation run data metrics should be more explicit
- Pipeline step: allow the description to be passed in validation steps HOT 1
- Calling ontrack from Jenkins using OntrackDSLStep HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ontrack-plugin.