Jenkins: Difference between revisions
From My Limbic Wiki
| Line 30: | Line 30: | ||
} | } | ||
</source> | </source> | ||
= | =Pipelines= | ||
==Pipeline Syntax== | |||
In shell, it is not specific to the execution system | |||
We can use methods like isUnix() to check on wich system it is running and exec a specific shell foreach | |||
Allowing user to generate pipeline configuration code from jenkins UI | |||
* Credentials | |||
==Github== | |||
* it is possible to exec an sh file from distant repository | |||
Revision as of 17:25, 22 November 2019
Plugins
- Pipeline
Continuous Delivery Pipeline
Jenkins have created the concept of "Pipeline As Code"
Sample
<source lang="JSON"> Jenkinsfile (Declarative Pipeline) pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
}
}
stage('Test') {
steps {
echo 'Testing..'
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
} </source>
Pipelines
Pipeline Syntax
In shell, it is not specific to the execution system We can use methods like isUnix() to check on wich system it is running and exec a specific shell foreach Allowing user to generate pipeline configuration code from jenkins UI
- Credentials
Github
- it is possible to exec an sh file from distant repository