Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Give any simple example of Jenkins script.
Home
Jenkins
Give any simple example of Jenkins script.
0
votes
asked
Jan 17, 2020
in
Jenkins
by
GeorgeBell
Give any simple example of Jenkins script.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 17, 2020
by
GeorgeBell
This is a Jenkins declarative pipeline code for Java:
pipeline {
agent
stages {
stage('Building your first asset') {
agent
steps {
echo 'Build asset'
}
}
stage('Test') {
agent
steps {
echo 'Building project 1'
}
}
}
}
Related questions
+1
vote
Q: Give one simple example of Jenkins pipeline code.
asked
May 13, 2020
in
Jenkins
by
Robindeniel
#jenkins-pipeline-example
#jenkins-pipeline-code
0
votes
Q: Give a simple use case/scenario to explain how Jenkins works.
asked
Apr 28, 2021
in
Jenkins
by
Robindeniel
#jenkins-example
jenkins-wok
0
votes
Q: How can you make a Bash script interactive? Give a simple example.
asked
Feb 7
in
JavaScript
by
john ganales
bash-script-interactive
0
votes
Q: Give a simple example of Jest test case
asked
Mar 3, 2020
in
ReactJS
by
miceperry
0
votes
Q: Provide an example of any simple Custom React Hook. Why do we need Custom Hooks?
asked
May 30, 2023
in
React Hooks
by
Robindeniel
customhooks
0
votes
Q: Give some important plugins in Jenkins.
asked
Apr 28, 2021
in
Jenkins
by
Robindeniel
#jenkins-plugins
plugins
0
votes
Q: Do you know any other continuous integration tools? How is Jenkins better than any of those?
asked
Apr 28, 2021
in
Jenkins
by
Robindeniel
jenkins
continuous-integration-tool
+1
vote
Q: Is there any relationship between Hudson and Jenkins?
asked
May 13, 2020
in
Jenkins
by
Robindeniel
#jenkins-hudson
hudson-vs-jenkins
+1
vote
Q: Is there any prerequisite for using Jenkins?
asked
May 13, 2020
in
Jenkins
by
Robindeniel
#jenkins-prerequisite
#prerequisite-jenkins
0
votes
Q: What is a trigger? Give an example of how the repository is polled when a new commit is detected.
asked
May 1, 2021
in
Jenkins
by
rajeshsharma
trigger
jenkins
...