| Crates.io | jenkinsfile |
| lib.rs | jenkinsfile |
| version | 0.2.1 |
| created_at | 2021-02-25 13:50:38.107407+00 |
| updated_at | 2021-03-02 04:18:01.428489+00 |
| description | a tools to convert Jenkinsfile to data struct |
| homepage | https://github.com/inherd/jenkinsfile |
| repository | https://github.com/inherd/jenkinsfile |
| max_upload_size | |
| id | 360432 |
| size | 33,139 |
a tools to convert Jenkinsfile to data struct.
Usage:
let jenkinsfile = Jenkinsfile::from_str(code).unwrap();
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct Jenkinsfile {
pub name: String,
pub stages: Vec<JenkinsStage>,
pub post: Vec<PostConfig>, // todo
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct JenkinsStage {
pub name: String,
pub steps: Vec<String>,
pub is_parallel: bool,
pub sub_stages: Vec<JenkinsStage>,
}
code based on Jenkins Declarative Parser with LGPL 3.0
@ 2020~2021 This code is distributed under the LGPL 3.0 license. See LICENSE in this directory.