Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Add support for Jenkins Blue Ocean #56

Merged
merged 1 commit into from
Mar 30, 2017
Merged

Conversation

rochdev
Copy link
Contributor

@rochdev rochdev commented Mar 17, 2017

closes #55

@codecov
Copy link

codecov bot commented Mar 17, 2017

Codecov Report

Merging #56 into master will increase coverage by 0.14%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
+ Coverage   95.65%   95.79%   +0.14%     
==========================================
  Files          17       18       +1     
  Lines         230      238       +8     
  Branches       45       46       +1     
==========================================
+ Hits          220      228       +8     
  Misses         10       10
Impacted Files Coverage Δ
lib/git.js 100% <100%> (ø)
lib/services/jenkins.js 100% <100%> (ø) ⬆️
lib/services/drone.js 100% <100%> (ø) ⬆️
lib/services/localGit.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b365cd8...0a3cea3. Read the comment docs.

@stevepeak
Copy link
Contributor

Very nice job @rochdev Thank you!

lib/git.js Outdated
},

head: function(){
return execSync("git rev-parse HEAD || hg id -i --debug | tr -d '+'").toString().trim();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommended change:

- return execSync("git rev-parse HEAD || hg id -i --debug | tr -d '+'").toString().trim()
+ return execSync("git log -1 --pretty=%B || hg id -i --debug | tr -d '+'").toString().trim()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevepeak This change seems to return the commit message instead of the commit ID.

@rochdev
Copy link
Contributor Author

rochdev commented Mar 18, 2017

Should I add Blue Ocean to the README? It might be confusing if different codecov implementations have different levels of support for Jenkins that is not documented.

@eddiemoore
Copy link
Collaborator

Looks good @rochdev

@stevepeak Do the other uploaders support Blue Ocean? If not we can add it to them

@rochdev
Copy link
Contributor Author

rochdev commented Mar 27, 2017

@stevepeak @eddiemoore What is the next step to have this move forward?

@stevepeak
Copy link
Contributor

@eddiemoore Other uploaders should support Blue Ocean by using git / hg.

@stevepeak
Copy link
Contributor

Given the change to git log -1 --format="%H": LGTM

@rochdev rochdev force-pushed the blue-ocean branch 2 times, most recently from 0530519 to 0436212 Compare March 28, 2017 20:44
@eddiemoore
Copy link
Collaborator

Looks good to me. @stevepeak All ok with you?

@stevepeak
Copy link
Contributor

stevepeak commented Mar 30, 2017

Yes, thank you @eddiemoore.

@stevepeak stevepeak merged commit d1bf5e4 into codecov:master Mar 30, 2017
@rochdev rochdev deleted the blue-ocean branch March 30, 2017 21:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Jenkins Blue Ocean
3 participants